httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anand nalya" <anand.na...@gmail.com>
Subject Re: [users@httpd] httpd 2.0.54 VHost not working
Date Mon, 28 Jan 2008 06:10:37 GMT
Hi,

The exact configuration is:

Listen 10.76.6.1:80

UseCanonicalName Off

DocumentRoot /var/www/html

NameVirtualHost 10.76.6.1:80 <http://10.76.6.1/>

<VirtualHost 10.76.6.1:80 <http://10.76.6.1/>>
    DocumentRoot /var/www/html/www/sub
    ServerName sub.mydomain.com
</VirtualHost>

<VirtualHost 10.76.6.1:80 <http://10.76.6.1/>>
    DocumentRoot /var/www/html/www
    ServerName www.mydomain.com
</VirtualHost>

And I'm using telnet to test virtual hosts with proper host names.

Is there any way, I can trace how apache is finding the absolute path of the
file to be served.

Thanks,
Anand Nalya

On 25/01/2008, Axel-Stephane SMORGRAV <Axel-Stephane.SMORGRAV@europe.adp.com>
wrote:
>
> Do you happen to have a Listen directive somewhere in the config for that
> address of yours?
>
> Listen 10.76.6.1:80
>
> Furthermore, are you sure that the request contains a host header with one
> of the VH servernames?
>
> Try to type in the following at a shell prompt ($ is a prompt):
>
> $ telnet 10.76.6.1 80
> GET /index.html HTTP/1.1
> Host: www.mydomain.com
> Connection: close
>
>
> Make sure to press CR twice after the last line. Make sure you have a file
> named index.html in /var/www/html/www
>
> BR
> -ascs
>
> ---------------------------------------------------------------------
> 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