Page 1 of 1

VHost Problem

PostPosted: 10. May 2005 14:13
by nickm
Hi,

I am using the latest version of xampp. The problem I am having is that my VHosts, which used to work fine, dont work anymore.

This is what the relavent section of my httpd.conf looks like:

#Mysite2 Virtual Host
#
<VirtualHost *>
ServerName www.mysite2.ath.cx
ServerAlias www.mysite2.ath.cx mysite2.ath.cx
DocumentRoot C:/apachefriends/xampp/htdocs/redirect/mysite2/
</VirtualHost>

The problem is that when I goto www.mysite2.ath.cx instead of going to the DocRoot I specify (/redirect/mysite2/) it just goes to the global (normal) DocRoot (C:/apachefriends/xampp/htdocs).

Any ideas?
Cheers

PostPosted: 14. May 2005 13:16
by nickm
somebody must know!!

PostPosted: 15. May 2005 15:35
by alucard01
What if (just if) you commented the documentroot directive which defined at the first few lines of httpd.conf?

I mean just use the documentroot in your <virtualhost> tag but disable the one which is exclusively specified?

PostPosted: 15. May 2005 16:33
by nickm
thanks, I will try that later