<-
Apache > HTTP Server > 文档 > 版本2.2 > 模块
   致谢 | 本篇译者:<虚位以待> | 本篇译稿完成时间:?年?月?日

Apache模块 mod_speling

说明自动纠正URL中的拼写错误
状态扩展(E)
模块名speling_module
源文件mod_speling.c

概述

Requests to documents sometimes cannot be served by the core apache server because the request was misspelled or miscapitalized. This module addresses this problem by trying to find a matching document, even after all other modules gave up. It does its work by comparing each document name in the requested directory against the requested document name without regard to case, and allowing up to one misspelling (character insertion / omission / transposition or wrong character). A list is built with all document names which were matched using this strategy.

If, after scanning the directory,

top

CheckSpelling 指令

说明Enables the spelling module
语法CheckSpelling on|off
默认值CheckSpelling Off
作用域server config, virtual host, directory, .htaccess
覆盖项Options
状态扩展(E)
模块mod_speling
兼容性CheckSpelling was available as a separately available module for Apache 1.1, but was limited to miscapitalizations. As of Apache 1.3, it is part of the Apache distribution. Prior to Apache 1.3.2, the CheckSpelling directive was only available in the "server" and "virtual host" contexts.

This directive enables or disables the spelling module. When enabled, keep in mind that

mod_speling should not be enabled in DAV enabled directories, because it will try to "spell fix" newly created resource names against existing filenames, e.g., when trying to upload a new document doc43.html it might redirect to an existing document doc34.html, which is not what was intended.