- Code: Select all
127.0.0.1 localhost
127.0.0.1 opatija21
127.0.0.1 proeduca
127.0.0.1 rona
127.0.0.1 test
I also set the parameters in httpd-vhosts.conf (actually copied the settings that I had in Wamp, and adjusted the paths to Xampp)
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "E:/xampp/htdocs"
ErrorLog "error.log"
CustomLog "access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerName www.opatija21.hr
ServerAlias opatija21 opatija21.hr
DocumentRoot "E:/xampp/htdocs/opatija21"
ErrorLog "logs/opatija21-error.log"
CustomLog "logs/opatija21-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerName test
DocumentRoot "E:/xampp/htdocs/test"
ErrorLog "logs/test-error.log"
CustomLog "logs/test-access.log" common
</VirtualHost>
Every virtual host (domain) has its own folder, and its own database with password.
Actually it all works well - I've started Apache and MySQL (I'm still not too familiar with Mercury, but I'll get to it...), Installed Joomla on one of the virtual hosts, made sure that the include httpd-vhosts.conf is enabled...
And there is the problem:
I can access all sites by typing https://localhost/xampp/ or https://localhost/test/ or whatever the name of the virtual host is, but if I try open it as http://localhost/xampp/ or http://localhost/test/ all I get is Access forbidden Error 403.
If I click on Apache Admin in Xampp control panel (it points to http://localhost/) I also get a 403 error, but the MySQL Admin that points to http://localhost/phpmyadmin/ opens correctly the phpMyAdmin start page to log in with the password I've set earlier. I have set both Apache and MySQL to run as services (manual start) and I start them through Xampp control panel.
I don't remember that I've set something during the installation... I was used to access the sites through HTTP in wamp - why should Xampp be different? What should I change so I can access my sites through HTTP?
Thank's