---
title: "apache speling_module - URL忽略大小写"
author: "飞奔的熊猫"
date: "2014-12-17T14:38:11Z"
tags: []
categories: ["开源软件"]
slug: "apache-speling-module-url"
draft: false
lastmod: "2014-12-17T14:38:11Z"
id: 2167057
url: "https://runpanda.iteye.com/blog/2167057"
---

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

```linux

[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模块

```linux

LoadModule speling_module modules/mod_speling.so

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

```linux

<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/>