jme
03-14-2004, 04:12 PM
Hiya Guys,
I have finally get my Apache, PHP, MySQL setup running under Debian, and now I want to be able to setup my server t o host two sites. I have read the Apache how-to's and some other sites that I have found through G4L, but I am still having problems.
When I point my browser at www.siteone.com I get what I should be getting - ie. the www.siteone.com homepage, however, if I point my browser at www.sitetwo.com, I still get the homepage of the first site.
Here is my virtual hosts part of my httpd.conf file:
NameVirtualHost 192.168.1.200
<VirtualHost 192.168.1.200>
ServerName www.siteone.com
DocumentRoot /var/www/siteone.com/
ErrorLog /var/www/siteone.com/error.log
</VirtualHost>
<VirtualHost 192.168.1.200>
ServerName www.sitetwo.com
DocumentRoot /var/www/sitetwo/
ErrorLog /var/www/sitetwo/error.log
</VirtualHost>
Any ideas or suggestions as to why this is happening would be great.
Thanks.
Jamie
I have finally get my Apache, PHP, MySQL setup running under Debian, and now I want to be able to setup my server t o host two sites. I have read the Apache how-to's and some other sites that I have found through G4L, but I am still having problems.
When I point my browser at www.siteone.com I get what I should be getting - ie. the www.siteone.com homepage, however, if I point my browser at www.sitetwo.com, I still get the homepage of the first site.
Here is my virtual hosts part of my httpd.conf file:
NameVirtualHost 192.168.1.200
<VirtualHost 192.168.1.200>
ServerName www.siteone.com
DocumentRoot /var/www/siteone.com/
ErrorLog /var/www/siteone.com/error.log
</VirtualHost>
<VirtualHost 192.168.1.200>
ServerName www.sitetwo.com
DocumentRoot /var/www/sitetwo/
ErrorLog /var/www/sitetwo/error.log
</VirtualHost>
Any ideas or suggestions as to why this is happening would be great.
Thanks.
Jamie