xampp - mysite.local redirects to xampp folder

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

xampp - mysite.local redirects to xampp folder

Postby bsod999 » 29. February 2012 11:46

I've been battering my head against this all evening and can't see where I'm going wrong. I want to set a host, mysite.local, on xampp and have followed all the instructions, but I keep getting redirected to mysite.local/xampp.

Any ideas where I'm going wrong here? The paths are correct, and I've restarted Apache :)

I edited my hosts file to add:

Code: Select all
127.0.0.1   mysite.local

I edited extra/httpd-vhosts.conf:

Code: Select all
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerName localhost
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
  Options Indexes FollowSymLinks MultiViews
   AllowOverride all
       Order Deny,Allow
       Allow from all
</Directory>
</VirtualHost>

<VirtualHost localhost:80>
<Directory "/Applications/XAMPP/xamppfiles/htdocs/wd">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
       Order Deny,Allow
       Allow from all
</Directory>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/wd"
    ServerName mysite.local
</VirtualHost>
bsod999
 
Posts: 1
Joined: 29. February 2012 10:56
Operating System: OS X Lion

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 47 guests