Thread: Apache Problem
View Single Post
Old 08-19-2005, 12:26 PM  
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Apache Problem

All my domains from VirtualHost are redirected to same documentroot (the documentroot of 1st VirtualHost

here is the sample from httpd.conf:

Code:
<VirtualHost *:80>
ServerName site1.com
DocumentRoot /home/www/site1.com
</VirtualHost> 

<VirtualHost *:80>
ServerName site2.com
DocumentRoot /home/www/site2.com
</VirtualHost>
But both site1.com and site2.com requests are redirected to /home/www/site1.com

What can be wrong?
__________________

Last edited by alex79; 08-19-2005 at 12:28 PM..
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote