天天看点

mac下xampp error 403的解决办法

1.

sudo vim /Applications/XAMPP/xamppfiles/etc/httpd.conf 

2.找到

<Directory />

    AllowOverride none

    Require all denied

</Directory>

3.改为

<Directory />

    AllowOverride none

    Require all granted

</Directory>

所有访问都有效,降低了系统的安全性。默认是拒绝的。另外更好的方法可以百度。这个东西害我弄了两天原来是它默认的有问题。如有更好解决办法请告诉本人