Localhost redirects to localhost/xampp/

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

Localhost redirects to localhost/xampp/

Postby tiamat2009 » 24. December 2012 11:03

I tried setting up a virtual host.

I followed instructions on a website with info on how to do this:

http://sawmac.com/xampp/virtualhosts/

Here is what I added to my vhost config:

Code: Select all
NameVirtualHost 127.0.0.1*:80
<VirtualHost 127.0.0.1:80>
   DocumentRoot "C:\xampp\htdocs"
   ServerName localhost
</VirtualHost>

<VirtualHost 127.0.0.1:80>
   DocumentRoot "D:\Users\Stephen\www"
   ServerName stephen.local
   
<Directory "D:\Users\Stephen\www">
      Options Indexes FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


I changed my host file to like the article says.

After doing this localhost now redirects to localhost/xampp/

stephen.localhost too

What did I do wrong? How can I fix this?
tiamat2009
 
Posts: 1
Joined: 24. December 2012 10:59
Operating System: Windows 8

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests