cjcmay 发表于 2017-1-6 09:52:10

apache speling_module

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

# 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.iyunv.com/510938/139381/
页: [1]
查看完整版本: apache speling_module