apache mod_access - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

會員
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 編輯。.
回覆
會員
回覆: apache mod_access
有參考過了
不過還是不太明白哪裡出錯了...
能在多解釋一下嗎 ?
謝謝!!
回覆
進階會員
回覆: apache mod_access
check apache 設定檔中 HostnameLookups 的設定
回覆
會員
回覆: apache mod_access
引用:
作者: repsol 觀看文章
check apache 設定檔中 HostnameLookups 的設定

HostnameLookups = Double
回覆
進階會員
回覆: apache mod_access
你把123.123.123.123 xxx.twbbs.org 寫到/etc/hosts裡面試試看
回覆
會員
回覆: apache mod_access
引用:
作者: repsol 觀看文章
你把123.123.123.123 xxx.twbbs.org 寫到/etc/hosts裡面試試看
請問如果是不固定的IP呢?

回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
apache 虛擬目錄的問題 zuyan ☉ -- 架 站 DIY 討 論 版 4 2006-12-27 07:25 PM
Apache 顯示圖片問題 Mowd -- FreeBSD & Linux 討 論 版 0 2006-06-22 11:19 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。