Page 1 of 1

Virtual Host redirects to /xampp [solved]

PostPosted: 24. May 2008 03:25
by iamrick
I've setup a virtual host so when I visit http://mysite.dev it shows C:\xampp\htdocs\mysite. The thing is, it doesn't. It redirects to display the xampp page: http://mysite.dev/xampp/.

In my http.conf I reference http-vhosts.conf:
Include conf/extra/httpd-vhosts.conf


http-vhosts.conf has the following:
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/xampp"
ServerName localhost
<Directory "C:/xampp/htdocs/xampp">
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/mysite"
ServerName mysite.dev
ServerAlias mysite.dev
<Directory "C:/xampp/htdocs/mysite">
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


And in my hosts file I have:
127.0.0.1 localhost
127.0.0.1 mysite.dev


What am I missing here? I've searched the forum like a mad man but couldn't find anything solutions that have worked - your thoughts are much appreciated :)

PostPosted: 24. May 2008 04:53
by iamrick
Wow, that was stupid. I've been editing http.conf from a previous standalone apache install. Whoops...