问题
I've got a similar issue to that reported by another user here XAMPP v1.7.4 installation issues,local host not working
Upgrading xampp to 1.7.3 (osx) in my case has broken my virtual hosts.
In /etc/hosts I've got
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 mysite.test
In /Applications/XAMPP/etc/httpd.conf I've got:
LoadModule rewrite_module modules/mod_rewrite.so #uncommented
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf #uncommented
In /Applications/XAMPP/etc/extra/httpd-vhosts.conf I've got: # Use name-based virtual hosting. NameVirtualHost *:80 NameVirtualHost *:443
<VirtualHost *:80>
ServerName mysite.test
DocumentRoot "/path-to-mysite/"
<Directory "/path-to-mysite/">
DirectoryIndex index.php
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
When tryng to access mysite.test Apache is logged in the following error [error] [client 127.0.0.1] (13)Permission denied: access to / denied
I've deleted the .htaccess, and repaired my disk permissions in case that was causing the problem.
Can anyone suggest what I might be missing?
Thanks ahead.
回答1:
Make sure that there isn't a changed permission in your main .conf
file. Could be an AllowOverride None
or something that is causing the problem.
来源:https://stackoverflow.com/questions/6327667/xampp-1-7-3-upgrade-broken-virtual-hosts-access-forbidden