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.3</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/">Documentation</a> > <a href="../">Version 2.3</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" title="English"> en </a> |
25 <a href="../ja/mod/mod_speling.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
26 <a href="../ko/mod/mod_speling.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
28 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Attempts to correct mistaken URLs that
29 users might have entered by ignoring capitalization and by
30 allowing up to one misspelling</td></tr>
31 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
32 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>speling_module</td></tr>
33 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_speling.c</td></tr></table>
37 <p>Requests to documents sometimes cannot be served by the core
38 apache server because the request was misspelled or
39 miscapitalized. This module addresses this problem by trying to
40 find a matching document, even after all other modules gave up.
41 It does its work by comparing each document name in the
42 requested directory against the requested document name
43 <strong>without regard to case</strong>, and allowing
44 <strong>up to one misspelling</strong> (character insertion /
45 omission / transposition or wrong character). A list is built
46 with all document names which were matched using this
49 <p>If, after scanning the directory,</p>
52 <li>no matching document was found, Apache will proceed as
53 usual and return a "document not found" error.</li>
55 <li>only one document is found that "almost" matches the
56 request, then it is returned in the form of a redirection
59 <li>more than one document with a close match was found, then
60 the list of the matches is returned to the client, and the
61 client can select the correct candidate.</li>
65 <div id="quickview"><h3 class="directives">Directives</h3>
67 <li><img alt="" src="../images/down.gif" /> <a href="#checkcaseonly">CheckCaseOnly</a></li>
68 <li><img alt="" src="../images/down.gif" /> <a href="#checkspelling">CheckSpelling</a></li>
72 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
73 <div class="directive-section"><h2><a name="CheckCaseOnly" id="CheckCaseOnly">CheckCaseOnly</a> <a name="checkcaseonly" id="checkcaseonly">Directive</a></h2>
74 <table class="directive">
75 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Limits the action of the speling module to case corrections</td></tr>
76 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>CheckCaseOnly on|off</code></td></tr>
77 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CheckCaseOnly Off</code></td></tr>
78 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
79 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Options</td></tr>
80 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
81 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_speling</td></tr>
83 <p>When set, this directive limits the action of the spelling correction to lower/upper case changes.
84 Other potential corrections are not performed.</p>
88 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
89 <div class="directive-section"><h2><a name="CheckSpelling" id="CheckSpelling">CheckSpelling</a> <a name="checkspelling" id="checkspelling">Directive</a></h2>
90 <table class="directive">
91 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Enables the spelling
93 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>CheckSpelling on|off</code></td></tr>
94 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CheckSpelling Off</code></td></tr>
95 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
96 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Options</td></tr>
97 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
98 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_speling</td></tr>
99 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>CheckSpelling was available as a separately available
100 module for Apache 1.1, but was limited to miscapitalizations. As
101 of Apache 1.3, it is part of the Apache distribution. Prior to Apache
102 1.3.2, the <code>CheckSpelling</code> directive was only available in the
103 "server" and "virtual host" contexts.</td></tr>
105 <p>This directive enables or disables the spelling module. When
106 enabled, keep in mind that</p>
109 <li>the directory scan which is necessary for the spelling
110 correction will have an impact on the server's performance
111 when many spelling corrections have to be performed at the
114 <li>the document trees should not contain sensitive files
115 which could be matched inadvertently by a spelling
118 <li>the module is unable to correct misspelled user names (as
119 in <code>http://my.host/~apahce/</code>), just file names or
120 directory names.</li>
122 <li>spelling corrections apply strictly to existing files, so
123 a request for the <code><Location /status></code> may
124 get incorrectly treated as the negotiated file
125 "<code>/stats.html</code>".</li>
129 <p>mod_speling should not be enabled in <a href="mod_dav.html">DAV</a>
130 enabled directories, because it will try to "spell fix" newly created
131 resource names against existing filenames, e.g., when trying to upload
132 a new document <code>doc43.html</code> it might redirect to an existing
133 document <code>doc34.html</code>, which is not what was intended.
138 <div class="bottomlang">
139 <p><span>Available Languages: </span><a href="../en/mod/mod_speling.html" title="English"> en </a> |
140 <a href="../ja/mod/mod_speling.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
141 <a href="../ko/mod/mod_speling.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
142 </div><div id="footer">
143 <p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
144 <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>