ITeye博客

apache speling_module - URL忽略大小写

飞奔的熊猫 · 2014-12-17 14:38 · webs · 开源软件 · Markdown

【基本介绍】 这里我们介绍apache的speling_module模块,该模块支持URL忽略大小写。windows端大小写不敏感,linux端大小写敏感。

【speling_module】 检查是否有speling_module模块


[root@xxmodules]# ls -ld /etc/httpd/modules/mod_speling.so 
-rwxr-xr-x. 1 root root 14608 Jul 23 22:18 /etc/httpd/modules/mod_speling.so

检查是否已经加载speling_module模块


LoadModule speling_module modules/mod_speling.so

启动speling 在某个虚拟机的Directory里面添加参数CheckSpelling On.启动speling. 例如:


<VirtualHost *:80>
    DocumentRoot /www/html/xxx/xxxx
    ServerName xxx
    CheckSpelling On
    ErrorLog  "|/usr/sbin/rotatelogs /www/log/gundam-zj.sb.91dena.com-error-%d%m%Y_log 86400 480"
    CustomLog "|/usr/sbin/rotatelogs /www/log/gundam-zj.sb.91dena.com-access-%d%m%Y_log 86400 480" common
</VirtualHost>

【参考引用】 http://yaksayoo.blog.51cto.com/510938/139381/

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。