Access forbidden! XAMPP虚拟主机的问题

XAMPP Control Panel v3.2.1添加虚拟主机出现

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

解决方法:

打开D:xamppapacheconfhttpd.conf文件,大概220行位置,找到

<Directory />
    AllowOverride none
    Require all denied
</Directory>

改成

<Directory />
    #AllowOverride none
    AllowOverride All
    #Require all denied
    Require all granted
</Directory>

即可。

原文地址:https://www.cnblogs.com/aqxinzhuan/p/3269863.html