Page 1 of 1

Problem with vhosts (xampp-win32-1.7.4-beta5-vc6-installer)

PostPosted: 15. January 2011 17:40
by zapik
Today I finnaly replaced stable version of XAMPP with new beta (because I needed newer version of PHP). Everything was fine until I started to creating virtual hosts as I have in older version.

Problem is when I set new virtual host, i.e.
Code: Select all
<VirtualHost *:80>
   DocumentRoot "D:/www/test"
   ServerName test.localhost.cz
</VirtualHost>


(where D:/www is the DocumentRoot configured in apache httpd.conf; record in etc/hosts file is also set)

It seems, server tries to run this virtual host EVERYTIME. I.e.

http://localhost/

display content of d:/www/test/.

http://localhost/info.php

Page was not foud.

Maybe default behaviour is only wrong configured, but in last version everything was OK without any special configuration.
I really didn't see this before and I can't find answer so if anyone could help, I appreciate it.

Thank a lot.

Re: Problem with vhosts (xampp-win32-1.7.4-beta5-vc6-install

PostPosted: 15. January 2011 20:03
by WilliL

Re: Problem with vhosts (xampp-win32-1.7.4-beta5-vc6-install

PostPosted: 15. January 2011 22:27
by zapik
Thank you!

I followed instructions there and things get better. To get all work correct for me, I had to reduce "first vhost container" to simple:
Code: Select all
<VirtualHost *:80>
    DocumentRoot "D:/www"
    ServerName localhost
</VirtualHost>