2012-09-28 55 views
1

我在兩個獨立的VPS帳戶上運行Ubuntu 12,並且兩者都有相同的問題。mod_speling沒有按預期啓用不區分大小寫

  • 我已經通過「a2enmod speling」啓用了拼寫模塊。

  • 我在/ etc/apache2/mods-available中同時使用了speling.load和speling.conf,並且它們在/ etc/apache2/mods-enabled中都是別名。

  • cat speling.conf產量 「CheckSpelling上」,並給出了cat speling.load 「的LoadModule speling_module /usr/lib/apache2/modules/mod_speling.so」

  • 我也驗證了/ usr/lib中/的Apache2 /模塊/確實包含「mod_speling.so」。

  • 我重複啓動了Apache。

然而 - 如果我錯誤地大寫了一個URL中的單詞,我得到了404。是不是「CheckSpelling on」意味着消除這個?也許我誤解了。

我覺得我已經錯過了一些愚蠢的步驟,但想不到什麼。

+0

與其編輯你的文章,我不得不問......你是否在整個配置過程中正確拼寫拼寫?我不禁注意到你在這裏諷刺使用'speling'。 – Sara

+1

「拼寫」是正確的。模塊被稱爲mod_speling。更多信息: http://httpd.apache.org/docs/2.2/mod/mod_speling.html –

+0

太棒了。繼續。 – Sara

回答

0

這很可能是mod_rewrite干擾mod_speling,因爲未檢查匹配mod_rewrite規則的url的拼寫。

檢查您的httpd.conf,站點配置以及.htaccess文件的mod_rewrite規則,這些規則可能與您試圖使區分大小寫的url相匹配。

1

這對我來說並不是很突出,因爲它運行良好很多年了。

我改變了我的configuation指令來自:

CheckSpelling on 
CheckCaseOnly on 

要:

checkspelling on 
checkcaseonly on 

現在它再次工作。所以把它全部小寫,看看是否有幫助。