You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lee Fellows <lf...@4lane.com> on 2003/04/03 19:50:03 UTC
Re: [users@httpd] Virtual Hosts; document root as seen from a
local user account and from the internet
On Thu, 2003-04-03 at 12:17, George Walsh wrote:
> <VirtualHost 192.168.1.11>
> ServerAdmin sysadmin@cruiseroutes.com
> ServerName www.cruiseroutes.com
> DocumentRoot /cdiv/web
> ScriptAlias /cgi-bin/ /cdiv/cgi-bin
> </VirtualHost>
>
> <VirtualHost 192.168.2.12>
> ServerAdmin sysadmin@xprservices.com
> ServerName www.xprservices.com
> DocumentRoot /xdiv/web
> ScriptAlias /cgi-bin/ /xdiv/cgi-bin
> </VirtualHost>
>
> However, if I go to another machine and ask for www.cruiseroutes.com or www.xprservices.com
> I am taken to the default page at /var/www/html instead of to the correct Document Root,
> albeit the correct URL name is nicely displayed on the default page.
>
You are using IP based virtualhosts. It would appear that
www.cruiseroutes.com and www.xprservices.com do not resolve to the
proper IP addresses from this machine. Check using dig or nslookup.
> --
> Lee Fellows <lf...@4lane.com>
---------------------------------------------------------------------
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