apache URL 大小忽略

一、CentOS系統

1、查看系統有無無模塊mod_speling.so,路徑:/etc/httpd/modules;如果有就直接pass,沒有自己從別處down一個過來用

2、加載此模塊
 

#vi /etc/httpd/conf/httpd.conf

在模塊加載區域,添加如下一行:

LoadModule speling_module modules/mod_speling.so

保存修改,退出

3、將speling.conf寫至目錄 /etc/httpd/conf.d  (內容同上)

4、重啓httpd服務

 

 

PS:

 


<VirtualHost 192.168.1.227:80>
#    ServerAdmin [email protected]
    DocumentRoot /var/www/html/
#    ErrorDocument 404 http://www.zj.com
    CheckSpelling On          (加上這個)
    ServerName 122.222.222.222

#    ErrorLog /var/log/httpd/zjnetbarerror_log
#    CustomLog /var/log/httpd/zjnetbar_log combined
</VirtualHost>



 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章