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

引言

继<[微信营销企划之路]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>

即可!

 
 

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

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

 

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

上一篇:微信公众平台开发之对加密模式的解密


下一篇:开源分享 一(StickerCamera + 仿微信多图选择)