httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zac Stevens <>
Subject Re: [users@httpd] Virtual Hosting Document Root Problem
Date Wed, 28 Aug 2002 01:51:18 GMT
On Tue, Aug 27, 2002 at 06:42:11PM -0700, Wang, Mary Y wrote:
> <VirtualHost>
> ServerName 
> ServerAlias
> ServerAdmin
> DocumentRoot /usr/www
> </VirtualHost>
> <VirtualHost>
> ServerName
> DocumentRoot /home/project/rprf/htdocs
> AddHandler cgi-script .cgi
> </VirtualHost>
> --------------------------------------------------------
> The problem is everytime I go to the,
> Apache is still grabing the index.html from /usr/www NOT from
> /home/project/rprf/htdocs that I specified as the DocumentRoot for

I think the problem here is that you've also listed that as a ServerAlias
for and I believe Apache will deliver the request to
the first VirtualHost which matches the details of the request.

Try removing or changing the ServerAlias and see if that fixes the problem.



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