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!