View Full Version : VHosts forwarding to wrong site

04-11-2009, 05:50 PM
Expected behavior:
To be able to visit http://artsite and have it display the site located in I:/Documents and Settings/Ralph/My Documents/My Sites/artsite/public.

Actual behavior:
Forwards to http://artsite/xamppand displays XAMPP's local site's home page as if I were visiting http://localhost.

To achieve expected behavior by either editing hosts and httpd-vhosts.conf. And if possible, to use a PAC file opposed to using the hosts file and also using dynamic virtual hosts opposed to continually editing the httpd-vhosts.conf. This is how I've done it previously just can't get it to work as previous.
It may look something like this:
I:/Documents and Settings/Ralph/My Documents/My Sites/%0/public

hosts localhost localhost:80 artsite


<Directory "I:/Documents and Settings/Ralph/My Documents/My Sites">
Order Deny,Allow
Allow from all

<VirtualHost *:80>
DocumentRoot I:/xampplite/htdocs
ServerName localhost

<VirtualHost *:80>
DocumentRoot "I:/Documents and Settings/Ralph/My Documents/My Sites/artsite/public"
ServerName artsite