上一篇 下一篇 分享链接 返回 返回顶部

Access forbidden! Error 403

发布人:杨俊杰 发布时间:2024-12-10 09:26 阅读量:823

VPS xampp Apache Access forbidden! Error 403

windows下使用xampp Apache配置虚拟主机,访问相关网页出现:

 

xampp Apache Access forbidden! Error 403

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

 

只需要将http.conf文件中的:

 

<directory  style="margin: 0px; padding: 0px; box-sizing: border-box; list-style: none;"> </directory >

     AllowOverride none

     Require all denied 

 

 

改成:

 

 

<directory  style="margin: 0px; padding: 0px; box-sizing: border-box; list-style: none;"></directory >

      ServerName test

      Options None  

      Order allow,deny  

      Allow from all   

  保存重启apache即可。

 

目录结构
全文