WampSever 远程访问出现Forbidden You don’t have permission to access / on this server.解决方法


之前安装wamp远程可以访问,今天在公司安装后发现远程不能访问,原来是Apache的httpd.conf配置

下面为解决方法

打开httpd.conf

第一步找到

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>

改成

<Directory />
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>
 
 

 



第二步 还是在httpd
.conf找到
<Directory “C:/wamp/www”>
# Possible values for the Options directive are “None”, “All”,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
# Note that “MultiViews” must be named *explicitly* — “Options All” # doesn’t give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be “All”, “None”, or any combination of the keywords: # Options FileInfo AuthConfig Limit # #AllowOverride all AllowOverride none # # Controls who can get stuff from this server. # # onlineoffline tag – don’t remove Order Allow,Deny Allow from all # Allow from 127.0.0.1 </Directory>
 
 

 

重启Apache,输入电脑地址,出现。。。。。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM