外部访问本地wamp

1.apache修改httpd.conf文件  所在位置wamp\bin\apache\apache2.4.9\conf\httpd.conf

2. 文件的244行左右

<Directory />
    AllowOverride none
    Require all denied
</Directory>
修改为
<Directory />
    AllowOverride none
    Require all denied
</Directory>


3.文件的228行

  onlineoffline tag - don't remove
  Require local
修改为
  onlineoffline tag - don't remove
  Require local
  Require all granted 

4.重启

猜你喜欢

转载自blog.csdn.net/qq_34410710/article/details/81660381