Virtual Host redirects to /xampp [solved]

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

Virtual Host redirects to /xampp [solved]

Postby iamrick » 24. May 2008 03:25

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 :)
Last edited by iamrick on 24. May 2008 04:54, edited 1 time in total.
iamrick
 
Posts: 2
Joined: 24. May 2008 03:17

Postby iamrick » 24. May 2008 04:53

Wow, that was stupid. I've been editing http.conf from a previous standalone apache install. Whoops...
iamrick
 
Posts: 2
Joined: 24. May 2008 03:17


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests