I'd like to use 2 different folders to serve webpages. But when I add the new one, it keeps redirecting me to the standard Dashboard xampp page!!
Any idea about what could cause that?
Here is what I did put in my httpd-vhosts.conf :
- Code: Select all
<VirtualHost *.80>
DocumentRoot "E:\xampp\htdocs\
ServerName localhost
</VirtualHost>
<VirtualHost *.80>
ServerAdmin adrien.saurat@onvareserver.com
DocumentRoot "E:/git/site1/htdocs"
ServerName site1.local
ServerAlias www.site1.local
ErrorLog "logs/site1.local.error.log"
CustomLog "logs/site1.local.access.log" common
<Directory "E:/git/site1/htdocs">
Require all granted
</Directory>
</VirtualHost>
In my Windows "hosts" file I simply added a ligne
127.0.0.1 site1.local
I use XAMPP for Windows 5.6.30, on Windows 10
Thanks!