1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>mod_speling - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
14 <div id="page-header">
15 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
16 <p class="apache">Apache HTTP Server Version 2.1</p>
17 <img alt="" src="../images/feather.gif" /></div>
18 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
20 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.1</a> > <a href="./">Modules</a></div>
21 <div id="page-content">
22 <div id="preamble"><h1>Apache Module mod_speling</h1>
24 <p><span>Available Languages: </span><a href="../en/mod/mod_speling.html" hreflang="en" title="English"> en </a> | <a href="../ja/mod/mod_speling.html" hreflang="ja" title="Japanese"> ja </a></p>
26 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Attempts to correct mistaken URLs that
27 users might have entered by ignoring capitalization and by
28 allowing up to one misspelling</td></tr>
29 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
30 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>speling_module</td></tr>
31 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_speling.c</td></tr></table>
35 <p>Requests to documents sometimes cannot be served by the core
36 apache server because the request was misspelled or
37 miscapitalized. This module addresses this problem by trying to
38 find a matching document, even after all other modules gave up.
39 It does its work by comparing each document name in the
40 requested directory against the requested document name
41 <strong>without regard to case</strong>, and allowing
42 <strong>up to one misspelling</strong> (character insertion /
43 omission / transposition or wrong character). A list is built
44 with all document names which were matched using this
47 <p>If, after scanning the directory,</p>
50 <li>no matching document was found, Apache will proceed as
51 usual and return a "document not found" error.</li>
53 <li>only one document is found that "almost" matches the
54 request, then it is returned in the form of a redirection
57 <li>more than one document with a close match was found, then
58 the list of the matches is returned to the client, and the
59 client can select the correct candidate.</li>
63 <div id="quickview"><h3 class="directives">Directives</h3>
65 <li><img alt="" src="../images/down.gif" /> <a href="#checkspelling">CheckSpelling</a></li>
69 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
70 <div class="directive-section"><h2><a name="CheckSpelling" id="CheckSpelling">CheckSpelling</a> <a name="checkspelling" id="checkspelling">Directive</a></h2>
71 <table class="directive">
72 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Enables the spelling
74 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>CheckSpelling on|off</code></td></tr>
75 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CheckSpelling Off</code></td></tr>
76 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
77 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Options</td></tr>
78 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
79 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_speling</td></tr>
80 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>CheckSpelling was available as a separately available
81 module for Apache 1.1, but was limited to miscapitalizations. As
82 of Apache 1.3, it is part of the Apache distribution. Prior to Apache
83 1.3.2, the <code>CheckSpelling</code> directive was only available in the
84 "server" and "virtual host" contexts.</td></tr>
86 <p>This directive enables or disables the spelling module. When
87 enabled, keep in mind that</p>
90 <li>the directory scan which is necessary for the spelling
91 correction will have an impact on the server's performance
92 when many spelling corrections have to be performed at the
95 <li>the document trees should not contain sensitive files
96 which could be matched inadvertently by a spelling
99 <li>the module is unable to correct misspelled user names (as
100 in <code>http://my.host/~apahce/</code>), just file names or
101 directory names.</li>
103 <li>spelling corrections apply strictly to existing files, so
104 a request for the <code><Location /status></code> may
105 get incorrectly treated as the negotiated file
106 "<code>/stats.html</code>".</li>
110 <p>mod_speling should not be enabled in <a href="mod_dav.html">DAV</a>
111 enabled directories, because it will try to "spell fix" newly created
112 resource names against existing filenames, e.g., when trying to upload
113 a new document <code>doc43.html</code> it might redirect to an existing
114 document <code>doc34.html</code>, which is not what was intended.
119 <div class="bottomlang">
120 <p><span>Available Languages: </span><a href="../en/mod/mod_speling.html" hreflang="en" title="English"> en </a> | <a href="../ja/mod/mod_speling.html" hreflang="ja" title="Japanese"> ja </a></p>
121 </div><div id="footer">
122 <p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
123 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>