Virtual hosts redirect to */xampp

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

Virtual hosts redirect to */xampp

Postby demonsql » 18. April 2015 23:43

I'm having an issue where every domain I've set up for a virtual host is redirecting to whatever.domain.com/xampp.

I've edited my hosts file:

Code: Select all
127.0.0.1       demon.billpay.com
127.0.0.1       demon.playground.com


I've uncommented the line in httpd.conf:

Code: Select all
# Virtual hosts
Include etc/extra/httpd-vhosts.conf


And I've set up the virtual hosts in httpd-vhosts.conf:

Code: Select all
<VirtualHost *:80>
   DocumentRoot "/Applications/XAMPP/htdocs"
   ServerName localhost
</VirtualHost>

<VirtualHost *:80>
   DocumentRoot "/Applications/XAMPP/htdocs/billpay"
   ServerName demon.billpay.com
</VirtualHost>

<VirtualHost *:80>
   DocumentRoot "/Applications/XAMPP/htdocs/playground"
   ServerName demon.playground.com
</VirtualHost>


It seems to be ignoring the virtual hosts and just defaulting to the root directory for localhost. The folders within htdocs exist (billpay and playground) and each have an index.html test page within to test the directories. Did I forget to change something?

Thanks!
demonsql
 
Posts: 1
Joined: 18. April 2015 23:36
Operating System: Mac OSX Yosemite 10.10.2

Re: Virtual hosts redirect to */xampp

Postby Nobbie » 19. April 2015 12:06

What tells the error log?
Nobbie
 
Posts: 8759
Joined: 09. March 2008 13:04


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 1 guest