打開apache安裝路徑中的http.conf文件 找打如下內容apache
#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.* 或者 Allow from all 便可。修改後以下:code
#onlineoffline tag - don't remove Order Deny,Allow # Deny from all Allow from 127.0.0.1 Allow from 192.168.1.*