requests are taken to the wrong directory

Posted by gidireich on Server Fault See other posts from Server Fault or by gidireich
Published on 2010-12-31T00:00:15Z Indexed on 2010/12/31 0:56 UTC
Read the original article Hit count: 498

Filed under:

Hi,

I use xampp on windows 7 64, to test locally my php web application

I use virtual hosts to have access to my code from different domain names.

Now, I created a new version of the code and want to access both versions using different domain names.

I added a new virtual host newversion.mysite.local to httpd-vhosts.conf and directed it to the directory of the new version. Also updated the windows hosts file with the line 127.0.0.4 newversion.mysite.local

A strange thing happens: when browsing to newversion.mysite.local I'm being taken to the old version, which is located at a different location.

How the hell this happens? Please help me with ideas

Thank you

Gidi

© Server Fault or respective owner

Related posts about apache