httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] virtual host spagetty
Date Tue, 18 Feb 2003 08:49:11 GMT
>-----Original Message-----
>From: Hytham Shehab []
>here is a snippet of httpd.conf:
>    ServerName
>    DocumentRoot /var/www/alhytham
>    ServerName
>    DocumentRoot /var/www/openwebmail
>and the /etc/hosts:
>    localhost.localdomain    localhost
>                alhytham
>         openwebmail

This should work - so I suspect another problem. Look in
/etc/nsswitch.conf and check "files" has priority over "DNS" for hosts
resolution (could be your system is going to DNS for the IP addresses).
Try "telnet" to check the request is going to
Try getting the site from the command line:

telnet 80
GET / HTTP/1.1

Owen Boyle

>> Normally, if apache can't resolve a Host header, it uses the FIRST VH
>> which matches the TCP/IP definition (IP and port). You say it is
>> matching the LAST one... So I would guess that your FIRST VH is
>> misconfigured and is never being selected. If you don't spot the bug
>> yourself, post the relevant VHs (please - not the whole confgi :-)
>> Rgds,
>> Owen Boyle
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message