named based virutal host problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

named based virutal host problem

Postby Drezek » 23. May 2009 10:26

i have xampp i followed this redivide.com/blog/setting-up-a-name-based-virtual-host-vhost/
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
Drezek
 
Posts: 8
Joined: 23. May 2009 10:25

Re: named based virutal host problem

Postby Sharley » 23. May 2009 10:56

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).

NameVirtualHost 127.0.0.1:80

<virtualhost redivide.zz:80>

</virtualhost>

<virtualhost example.zz:80>

</virtualhost>

<virtualhost example-1.zz:80>

</virtualhost>
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
</virtualhost>
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:
http://httpd.apache.org/docs/2.2/vhosts/examples.html
http://httpd.apache.org/docs/2.2/vhosts/name-based.html


EDIT
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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 74 guests