apache speling_module - URL忽略大小写

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

【speling_module】
检查是否有speling_module模块
[code="linux"]
# 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
[/code]
检查是否已经加载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>



【参考引用】
[url]http://yaksayoo.blog.51cto.com/510938/139381/[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值