1. 程式人生 > >linux伺服器URL大小寫問題

linux伺服器URL大小寫問題

同上一篇提到的mysql大小寫問題一樣,Windows上的apache大小寫是不敏感的,而linux上對大小寫敏感,於是百度一波找到了解決方法:

1.在/etc/httpd/modules下檢視是否存在mod_speling.so模組;沒有的話下載個同版本的apache找到這個拓展,上傳到這個目錄下

2.載入此模組:

在/etc/httpd/conf/目錄下找到apache配置檔案httpd.conf

新增如下兩行程式碼

LoadModule speling_module modules/mod_speling.so

CheckSpelling on

 3.重啟apache

/bin/systemctl restart httpd.service

配置完成