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?