![]() |
apache mod_access 我想用server-status [url]http://xxx.twbbs.org/server-status[/url] 在status.conf [code] <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from xxx.twbbs.org </Location> [/code] 可是我去連[url]http://xxx.twbbs.org/server-status[/url] 卻出現 [code] Forbidden You don't have permission to access /server-status on this server. [/code] 但是將xxx.twbbs.org 改成 IP 就可以連的上 [code] Allow from 123.123.123.123 [/code] 再去連[url]http://xxx.twbbs.org/server-status[/url] 就連的上 而xxx.twbbs.org 有對應到IP 123.123.123.123 因為 [COLOR="Blue"]ping xxx.twbbs.org[/COLOR] [code] PING xxx.twbbs.org (123.123.123.123) 64 bytes from..... 64 bytes from..... 64 bytes from..... 3 packets transmitted, 3 received, 0% packet loss, time 2007ms [/code] 是Allow from 後面不能接domain name嗎 還是我那裡沒設好 |
回覆: apache mod_access [url]http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow[/url] [url]http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow[/url] |
回覆: apache mod_access [QUOTE=tvirus;1044287][url]http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow[/url] [url]http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow[/url][/QUOTE] 有參考過了 不過還是不太明白哪裡出錯了... 能在多解釋一下嗎 ? 謝謝!! |
回覆: apache mod_access [COLOR="Blue"]check apache 設定檔中 HostnameLookups 的設定[/COLOR] |
回覆: apache mod_access [QUOTE=repsol;1044442][COLOR="Blue"]check apache 設定檔中 HostnameLookups 的設定[/COLOR][/QUOTE] HostnameLookups = Double |
回覆: apache mod_access [COLOR="Blue"]你把123.123.123.123 xxx.twbbs.org 寫到/etc/hosts裡面試試看[/COLOR] |
回覆: apache mod_access [QUOTE=repsol;1044637][COLOR="Blue"]你把123.123.123.123 xxx.twbbs.org 寫到/etc/hosts裡面試試看[/COLOR][/QUOTE] 請問如果是不固定的IP呢? |
| 所有時間均為 +8。現在的時間是 07:54 PM。 |
| XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。