PCZONE 討論區 - 觀看單一文章 - apache mod_access
觀看單一文章
geniusbou
會員
apache mod_access
我想用server-status
http://xxx.twbbs.org/server-status
在status.conf

語法:
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from  xxx.twbbs.org
</Location>
可是我去連http://xxx.twbbs.org/server-status
卻出現
語法:
Forbidden

You don't have permission to access /server-status on this server.
但是將xxx.twbbs.org 改成 IP 就可以連的上
語法:
Allow from 123.123.123.123
再去連http://xxx.twbbs.org/server-status
就連的上
而xxx.twbbs.org 有對應到IP 123.123.123.123
因為 ping xxx.twbbs.org
語法:
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
是Allow from 後面不能接domain name嗎
還是我那裡沒設好


此篇文章於 2009-01-25 11:52 AM 被 geniusbou 編輯。.
回覆