1
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
回應一下wsj的問題...(...這是"小學生"對"國中生"的悄悄話..^_^)
Fedora 的 mrtg 文件與使用圖檔, 預設是安裝在 /var/www/mrtg 目錄下
rpm安裝的同時, 會在 /etc/httpd/conf.d/下安裝 mrtg.conf
在這個檔案中:
1.宣告 mrtg 的虛擬目錄是指向 /var/www/mrtg 目錄
2.預設 deny 掉除了 localhost 以外的連線(為的是安全的問題)
因此 wsj 的問題在, 不應該將mrtg的文件產生目錄放在 /var/www/html/mrtg
因為 apache 會先認虛擬目錄的存在, 已經先去找 /var/www/mrtg 的目錄
又由於預設 deny all, 故出現 Forbidden 的問題
You don't have permission to access /mrtg/index.html on this server
解決之道:
1.將mrtg的data目錄改名, 保證ok (依小弟判斷 wsj 兄應該不是設定錯誤)
2.將mrtg的data目錄移到 /var/www/mrtg 下, 並在 /etc/httpd/conf.d/的
mrtg.cfg檔開放所要連線觀看mrtg網頁的網段
語法為: Allow from .domain 名稱, 或 Allow 192.168.1.
(請注意domain前與IP後的 dot 位置)
Fedora 的設計概念實作初步的 SELinux 理念, 因此處處可見對安全性的著墨
建議測試時可善用 rpm -ql 看看究竟裝了什麼東東在哪裡, 可省不少事喔!!
hi.....
2.如果你要使用inetd mode的話,請在/etc/xinetd.d目錄下新增一檔案叫做proftpd,檔案內容如下:
記得/etc/xinetd.d/下的proftpd 要指向 in.proftpd這個!!
cat /usr/local/etc/proftpd.conf
# This is the ProFTPD configuration file
ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
MaxClients 10
Port 21
Umask 022
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# /etc/rc.d/init.d/proftpd restart
Shutting down proftpd: [FAILED]
Starting proftpd: a.b.c.org - Fatal: Socket operation on non-socket
a.b.c.org - (Running from command line? Use `ServerType standalone' in config file!)
[FAILED]
之後在執行 server xinetd restart後,就可重remote用ftp登入了
然後 service proftpd restart 之後﹐只有﹕Shutting down proftpd: [FAILED]