Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: VHosts forwarding to wrong site
04-11-2009, 04:50 PM #1
- Join Date
- Mar 2003
- Thanked 30 Times in 28 Posts
VHosts forwarding to wrong site
To be able to visit
http://artsiteand have it display the site located in
I:/Documents and Settings/Ralph/My Documents/My Sites/artsite/public.
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
127.0.0.1 localhost 127.0.0.1 localhost:80 127.0.0.1 artsite
<Directory "I:/Documents and Settings/Ralph/My Documents/My Sites"> Order Deny,Allow Allow from all </Directory> <VirtualHost *:80> DocumentRoot I:/xampplite/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "I:/Documents and Settings/Ralph/My Documents/My Sites/artsite/public" ServerName artsite </VirtualHost>Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.