码迷,mamicode.com
首页 > 微信 > 详细

[微信营销企划之路]003.Access forbidden!

时间:2015-09-03 11:31:33      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:

引言

继<[微信营销企划之路]001.环境搭建(XAMPP+WeiPHP)>后,有不少朋友反应按照001教程配置虚拟多站点(<VirtualHost/>)后,部分站点会出现Access forbidden!情况。

这该如何解决呢,似乎网上大部分解决方案都不起效果。下面就由SuperDo#AC为大家解答疑惑。

 

1、症状

Access forbidden!

You don‘t have permission to access the requested directory. There is either no index document or the directory is read-protected.

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

Error 403

127.0.0.100
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3

 

2、解决方案

将原来类似配置,如:

<VirtualHost *:80>
    DocumentRoot "C:/GIT/Website/p0001_PP_Tool.Pub"
    ServerName 127.0.0.101
</VirtualHost>

修改为:

<VirtualHost *:80>
    DocumentRoot "C:/GIT/Website/p0001_PP_Tool.Pub"
    ServerName 127.0.0.101
    
    <Directory "C:/GIT/Website/p0001_PP_Tool.Pub">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

即可!

 
 

 技术分享

本站文章为 宝宝巴士 SD.Team 原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 
转载自【宝宝巴士SuperDo团队】 原文链接: http://www.cnblogs.com/superdo/p/4779975.html

 

[微信营销企划之路]003.Access forbidden!

标签:

原文地址:http://www.cnblogs.com/superdo/p/4779975.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!