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