阿帕奇mod_speling不区分大小写的URL问题 [英] Apache mod_speling case insensitive URLs issue

查看:201
本文介绍了阿帕奇mod_speling不区分大小写的URL问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有使用Apache的 mod_speling 模块不区分大小写的网址,但是这是生产的多种选择不需要的名单,而在Apache机制的文档说

I want to have case insensitive URLs using Apache's mod_speling module, but this is producing unwanted lists of "multiple options" whilst the Apache documention says

设置时,该指令限制了拼写校正,以降低/大写变化的行动。其他潜在的更正不执行。

When set, this directive limits the action of the spelling correction to lower/upper case changes. Other potential corrections are not performed.

我在Apache 2.2.16的Unix测试这个新的安装,但我仍然运行到确切在2008年提交了同样的问题。

I'm testing this on an Apache 2.2.16 Unix fresh install but I'm still running into exact the same problems as submitted in 2008.

这是当阿帕奇列出了一些多项选择意外(和不想要的)行为(状态code 300)时,checkCaseOnly指令是上!

It's unexpected (and not wanted) behaviour when Apache lists a few "multiple choices" (status code 300) when the checkCaseOnly directive is on!

我有这在我的的httpd.conf

CheckSpelling on
CheckCaseOnly on

首先指令以使用 mod_speling ,第二个指令,以限制只能案件更正

First directive to use the mod_speling, second directive to limit only to case corrections

我在做什么错了?

推荐答案

要启用mod_speling(无论是位置还是虚拟主机)使用指令:

To enable mod_speling (either by Location or VirtualHost) use the directive:

CheckSpelling在

CheckSpelling On

如果你想要的是不区分大小写使用:

If all you want is case insensitivity use:

CheckCaseOnly在

CheckCaseOnly On

这篇关于阿帕奇mod_speling不区分大小写的URL问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆