I've installed XAMPP 7.2.23 on a Mac with Mojave OS. I've set everything up as one should (I've followed the guide Configure Virtual Hosts) and got one virtual host working. I've copied the information of the virtual host and set up a new directory in /htdocs so I can work on a second project. But whatever I do, the second installation/virtual host just keeps sending me to a dashboard.
Another strange thing is that it answers on the domain, but sends me to a dashboard.
For example. site1.loc works fine, all the time. site2.loc answers but adds /dashboard to the URL and shows the default dashboard from XAMPP. When I remove /dashboard and add for example COPYRIGHT.txt (which is a file in the folder in /htdocs/site2/) it gives me a 404.
I've changed the .loc from both .localhost and .local to see if the name localhost makes any difference, but it doesn't.
Since I have several personal websites, a multi-virtual host-setup is of outmost importance to me, and this one is really making me perplexed. It seems to work... like half the way...
Any help and thoughts (and prayers) are appreciated.
More information on the setup:
I've uncommented the line
- Code: Select all
Include etc/extra/httpd-vhosts.conf
The contents of /etc/hosts
- Code: Select all
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 site1.loc
127.0.0.1 site2.loc