Page 1 of 1

named based virutal host problem

PostPosted: 23. May 2009 10:26
by Drezek
i have xampp i followed this
when im on the computer that xampp runs on it works fine both domains go to their proper directory ones c://xampp/htdocs/fa and the others c://xampp/htdocs/wsd but when i try it on another computer both domains go to the default folder which is c://xampp/htdocs if anyone could help me i could give my logmein account and password to someone with a high post count so i know i can trust them

Re: named based virutal host problem

PostPosted: 23. May 2009 10:56
by Sharley
Do an advanced search in the XAMPP for Windows forum using Sharley in the Author box and for keyword use virtualhost or vhost and you will be presented with many examples that work quite well (you can omit Sharley for even more varied results).


<virtualhost redivide.zz:80>


<virtualhost example.zz:80>


<virtualhost example-1.zz:80>

The above from the site you gave would be better configured using a wild card, for example like this:
Code: Select all
NameVirtualHost *:80
<virtualhost *:80>
    ServerAdmin admin@redivide.zz
    DocumentRoot "c:/xampp/htdocs/redivide.zz"
    ServerName redivide.zz
You can see if the wild card method on all your vhosts containers may fix your access issue.

If you paste here your httpd-vhosts.conf file then we can take a look and recommend some alternatives if you have followed the web site you posted above.

The docs are here and may give you some more helpful clues:

Just to close this topic - after some communication via PM the code section above using a wild card *:80 was the solution for the OP's issue.