Linux 下 Apache 忽略网站 URL 的大小写的方法

2020-04-21 09:23:46

Linux

Linux 下 Apache 忽略网站 URL 的大小写的方法

大家都知道 Linux 服务器访问路径都是区分大小写的,那么搭建了 Apache 后访问 www.abc.com/INDEX.html 和 www.abc.com/index.html访问到的路径是不一样的

要解决这个问题,需要使用使用 Apache 的 mod_speling 模块。

编译安装 Apache 时把 mod_speling 模块也编译了,如

./configure --prefix=/usr/local/apache2 --enable-so --enable-speling

修改 Apache 的配置文件 httpd.conf,加上:

LoadModule speling_module     modules/mod_speling.so
CheckSpelling On

 这样就启用了 mod_speling 模块。

mysql php html server windows Excel Word Linux CAD

首页  返回列表

本站所有资料均来自网络,若有侵权请联系本站删除!粤ICP备18142546号