本机ip是:192.168.1.25,输入后提示:
Forbidden
You don't have permission to access / on this server
对于此问题的解决办法,打开apache安装路径中的http.conf(有些是httpd.conf)文件,(如果找不到就搜索http.conf,或者httpd.conf)
找打以下内容
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
在Deny from all 前加上#来注释掉此行,并在Allow from 127.0.0.1 后面加上一行Allow from 192.168.1.* 即可。修改后如下:
# onlineoffline tag - don't remove
Order Deny,Allow
# Deny from all (或者在此加个“Allow from all”)
Allow from 127.0.0.1
Allow from 192.168.1.* 上面全部改好后,保存文件 最重要的是要重新启动一次服务器,在用本机ip查看