星期一, 10月 30, 2006

Apache 2.2需注意的事項

一、設定的位置有所不同,如:虛擬網站的設定沒有和 http.conf 寫在一起,而是放在底下的 extra/httpd-vhost.conf,然後在 http.conf 中將該檔案 Include 進來

# Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf

二、Apache 2.2開機時執行沒有問題,不過,若由手動執行 apachectl 來重新啟動,就會產生 Failed to enable the ‘httpready’ Accept Filter 的錯誤訊息,解決方法有三種:

  • 命令列: kldload /boot/kernel/accf*.ko
  • 設定檔/boot/load.conf :  accf_http_load="yes"
  • 重新編譯核心:
    options        ACCEPT_FILTER_DATA
    options         ACCEPT_FILTER_HTTP