Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Vhosts forwarding to wrong site
Closed Thread
Old 04-12-2009, 12:17 AM   #1 (permalink)
 
Newb Techie

Join Date: Jul 2005

Posts: 14

StupidRalph

Default Vhosts forwarding to wrong site

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/xampp and displays XAMPP's local site's home page as if I were visiting http://localhost.

Desired:
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
Code:
127.0.0.1      localhost

127.0.0.1      localhost:80

127.0.0.1      artsite
httpd-vhosts.conf
Code:
<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>

StupidRalph is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting photos from my email onto internet site Skywanderer Windows Operating Systems and Software 3 03-09-2009 05:33 AM
Every site is being blocked bagelred Computer Networking & Internet Access 1 01-31-2009 10:37 AM
Legit Site? Stevo808 Browser & General Internet Questions 2 04-20-2007 06:05 PM