把Listen跟ServerName都改为你的IP
Listen <IP>:80
ServerName <IP>:80
如果你的httpd.conf的根目录的权限设置为
Deny from all
Allow from 127.0.0.1
的话,需要改为
Deny from all
Allow from <IP>
把Listen跟ServerName都改为你的IP
Listen <IP>:80
ServerName <IP>:80
如果你的httpd.conf的根目录的权限设置为
Deny from all
Allow from 127.0.0.1
的话,需要改为
Deny from all
Allow from <IP>
转载于:https://www.cnblogs.com/yaoshiyou/archive/2010/08/25/1808104.html