xampp 1.7.3 upgrade broken virtual hosts access forbidden

99封情书 提交于 2019-12-11 12:11:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!