Movatterモバイル変換


[0]ホーム

URL:


Modules |Directives |FAQ |Glossary |Sitemap

Apache HTTP Server Version 2.4

<-
Apache >HTTP Server >Documentation >Version 2.4 >Modules

Apache Module mod_speling

Available Languages: en  | fr  | ja  | ko 

Description:Attempts to correct mistaken URLs by ignoringcapitalization, or attempting to correct various minormisspellings.
Status:Extension
Module Identifier:speling_module
Source File:mod_speling.c

Summary

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 namewithout regard to case, and allowingup to one misspelling (character insertion / omission / transposition or wrong character). A list is built with all document names which were matched using this strategy.Erroneous extension can also be fixed by this module.

If, after scanning the directory,

Support Apache!

Directives

Bugfix checklist

See also

top

CheckBasenameMatchDirective

Description:Also match files with differing file name extensions.
Syntax:CheckBasenameMatch on|off
Default:CheckBasenameMatch On
Context:server config, virtual host, directory, .htaccess
Override:Options
Status:Extension
Module:mod_speling
Compatibility:Available in httpd 2.4.50 and later

When set, this directive extends the action of the spelling correction to the file name extension. For example a filefoo.gif will match a request forfoo orfoo.jpg. This can be particularly useful in conjunction withMultiViews.

top

CheckCaseOnlyDirective

Description:Limits the action of the speling module to case corrections
Syntax:CheckCaseOnly on|off
Default:CheckCaseOnly Off
Context:server config, virtual host, directory, .htaccess
Override:Options
Status:Extension
Module:mod_speling

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

top

CheckSpellingDirective

Description:Enables the spellingmodule
Syntax:CheckSpelling on|off
Default:CheckSpelling Off
Context:server config, virtual host, directory, .htaccess
Override:Options
Status:Extension
Module:mod_speling

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

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

Available Languages: en  | fr  | ja  | ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to ourmailing lists.

Copyright 2025 The Apache Software Foundation.
Licensed under theApache License, Version 2.0.

Modules |Directives |FAQ |Glossary |Sitemap


[8]ページ先頭

©2009-2025 Movatter.jp