kid_drew Posted August 8, 2008 Share Posted August 8, 2008 I'm just about to scream. This makes absolutely no sense to me. Hopefully someone else has some insight into this. I've set up virtual hosts plenty of times in apache/linux....no problems. I'm trying to do the same thing in Windows and I'm getting all kinds of problems. NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example1.com DocumentRoot i:\webroot </VirtualHost> <VirtualHost *:80> ServerName www.example2.com DocumentRoot i:\webroot\example2 </VirtualHost> This is my config verbatim with the domains replaced with example1/example2. I get no error messages, but both www.example1.com and www.example2.com direct to the i:\webroot directory. Like I said....this makes absolutely no sense. Does anyone have any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/118819-solved-apache-virtual-hosts/ Share on other sites More sharing options...
peranha Posted August 8, 2008 Share Posted August 8, 2008 Have you set up your windows hosts file? Quote Link to comment https://forums.phpfreaks.com/topic/118819-solved-apache-virtual-hosts/#findComment-611811 Share on other sites More sharing options...
kid_drew Posted August 8, 2008 Author Share Posted August 8, 2008 I'm stupid. One of the apps is a wordpress blog which was still configured to be at a subdirectory of my webroot. This is solved. Quote Link to comment https://forums.phpfreaks.com/topic/118819-solved-apache-virtual-hosts/#findComment-611856 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.