問題:Apache服務器啓動以後,localhost能訪問啓動項,但127.0.0.1卻不能。apache
解決辦法:服務器
1.打開apache安裝路徑中的http.conf文件,找打如下內容spa
1 # onlineoffline tag - don't remove 2 Order Deny,Allow 3 Deny from all 4 Allow from 127.0.0.1
2.在Deny from all 前加上#來註釋掉此行,並在Allow from 127.0.0.1 後面加上一行Allow from 192.168.1.* 便可。修改後以下:code
1 # onlineoffline tag - don't remove 2 Order Deny,Allow 3 # Deny from all 4 Allow from 127.0.0.1 5 Allow from 192.168.1.*
實際解決:1.只有httpd.conf文件,而不是http.conf文件blog
2.修改前:rem
修改後:class
2017-01-28im