I realize this has been beaten to death, but I haven't found a solution yet... I can't get both my normal XAMPP localhost and a subdomain to work simultaneously. I can get either one to operate on its own, though... but it would be great to have BOTH.
Here's the pertinent files... any ideas?
httpd-vhosts.conf file
- Code: Select all
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot D:/xampp/htdocs
ServerName localhost
<Directory "D:/xampp/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot D:/Work/spotedu/donate
ServerName donate.localhost
<Directory "D:/Work/spotedu/donate">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
hosts file
- Code: Select all
127.0.0.1 localhost
#::1 localhost
127.0.0.1 donate.localhost
Thanks!
-Trevor