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

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

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

Postby zapik » 15. January 2011 17:40

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.
zapik
 
Posts: 2
Joined: 15. January 2011 17:19

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

Postby WilliL » 15. January 2011 20:03

Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

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

Postby zapik » 15. January 2011 22:27

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>
zapik
 
Posts: 2
Joined: 15. January 2011 17:19


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 135 guests