wamp2.5 局域网无法访问问题

1.打开http.conf文件,在对应处修改为如下内容(通常经过步骤一之后就能访问了,若不行则再执行后面步骤)

<Directory />
    Options FollowSymLinks
    AllowOverride all
    Order deny,allow
    #   Deny from all
    Allow from all
</Directory>
<Directory "D:/wamp/www/">    
  Options Indexes FollowSymLinks

   AllowOverride all order deny
,allow allow from all Require all granted
# Require local </Directory>

2.在http-vhosts.conf中添加

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "d:/wamp/www"
    ServerName 172.16.2.70
    ServerAlias 172.16.2.70
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

3.在本机system中添加(这句是让自己访问自己IP看能否访问)

127.0.0.1 172.16.2.70

4.在http.conf找到这一句(如果没有显示禁止访问,只是显示无法连接)

Listen 127.0.0.1:80

改成

Listen 0.0.0.0:80

 

posted @ 2016-12-05 15:35  IT~民工  阅读(278)  评论(0编辑  收藏  举报