人类的孤独像是一种与生俱来的残疾。

xampp:Access forbidden!You don’t have permission to access the requested directory

Web smallfish 1732℃

出现以上错误的原因可能有很多种:大多都是因为配置不对导致。

1、根路径不对

2、访问权限不对

 

示例:

Listen 8000  
<VirtualHost *:8000>  
    DocumentRoot "D:/xampp/htdocs/yancao_yujing"  
    ServerName yancao_yujing  
    <Directory />  
        AllowOverride All
        Order deny,allow
        Allow from all
        Require all granted
    </Directory>  
</VirtualHost>  

利用对不同端口监听,可实现多个项目同时进行。而不必来回切换。

转载请注明:OpenMind » xampp:Access forbidden!You don’t have permission to access the requested directory

喜欢 (0)