httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Roberts" <a...@lonetree.com>
Subject RE: [users@httpd] VirtualHost confusion
Date Wed, 02 Nov 2005 14:30:10 GMT
Thanks, but that doesn't seem to have done anything.  I am still having the
same problem.

Is there something externally that might be causing this?  I have my routing
setup with this host as a DMZ and my firewall is allowing port 80.

????

Thanks!
Adam R. 




----------------------------------------------------------------------------
----------------
"The only difference between this place and the Titanic was the Titanic had
a band"
-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
Sent: Wednesday, November 02, 2005 1:14 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] VirtualHost confusion

> -----Original Message-----
> From: Adam Roberts [mailto:adam@lonetree.com]
> Apache2 running on RHEL 3 ES Update 6.
> 
> VirtualHost snippet from /etc/httpd/conf/httpd.conf
> ----------------------------------------------------------
> 
> NameVirtualHost <ip-address>:80
> 
> <VirtualHost <ip-address>>
>         ServerName www.domain2.net
>         ServerAdmin webmaster@domain2.net
>         DocumentRoot /var/www/html/domain2
>         ServerAlias www.domain2.net domain2.net </VirtualHost>
> 
> <VirtualHost <ip-address>>
>         ServerName www.domain1.com
>         ServerAdmin webmaster@domain1.com
>         DocumentRoot /var/www/html
>         ServerAlias www.domain1.com domain1.com </VirtualHost>
> 
> When I try to access either domain from my web browser (Firefox 
> 1.0.7), I can only see the pages for domain1.com.  If I go to 
> domain2.net, I am served the pages for domain1.com.

I was always under the impression (might be wrong) that the correlation
between NameVirtualHost argument and VirtualHost argument is done using
string matching. Therefore, the two have to match for it to work. You've
added the port number to the NVH argument. So either drop it there or add it
also the VH arguments.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  


> Thus far, I am stumped.  I
> managed to create
> configuration files that served no pages, errors, one but not the 
> other, but never successfully both.  This current configuration is the 
> best I have come up with so far.
> 
> I own both of these domains and the DNS for these domains are pointing 
> to the correct IP address, as indicated by getting something when I 
> enter either address.
> 
> Any help would be very much appreciated.  
> 
> Thanks!!
> Adam R.  
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen
Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of
a private and personal nature. It is not related to the exchange or business
activities of the SWX Group. Le présent e-mail est un message privé et
personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system.
Please also immediately destroy any hardcopies of the message. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. The sender's company
reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message