I used XAMPP 7.1.8-0, PHP Version 7.1.8 on MacOs 10.11.6
My problem: I have 3 sites on my localhost, 2 working fine, but one... error 404
file httpd-vhosts.conf:
- Code: Select all
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/client1/www/"
ServerName client1.localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/client2/www/"
ServerName client2.localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/client3/httpdocs/“
ServerName client3.localhost
</VirtualHost>
file [root] /etc/hosts
- Code: Select all
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
#fe80::1%lo0 localhost
127.0.0.1 client1.localhost
127.0.0.1 client2.localhost
127.0.0.1 client3.localhost
Obs.: "client1, client2 and client3" are not the real names of the sites, only for demonstration.
In resume:
localhost.client1 -> ok
localhost.client2 -> ok
localhost.client3 -> page 404, but...
http://localhost/client2/httpdocs/ -> ok
Any idea? Thanks in advance,
Carlos