您的位置:首页 > 移动开发 > 微信开发

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

2015-09-03 10:40 579 查看

引言

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

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

1、症状

2、解决方案

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团队】 原文链接: /article/6669163.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: