Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+
+ *) mod_dir: Support "DirectoryIndex None"
+ Suggested By André Warnier <aw ice-sa.com> [Eric Covener]
+
*) mod_proxy: Add the possibility to set the worker parameters
connectiontimeout and ping in milliseconds. [Ruediger Pluem]
<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>List of resources to look for when the client requests
a directory</td></tr>
<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>DirectoryIndex
- <var>local-url</var> [<var>local-url</var>] ...</code></td></tr>
+ None | <var>local-url</var> [<var>local-url</var>] ...</code></td></tr>
<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>DirectoryIndex index.html</code></td></tr>
<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
executed if neither <code>index.html</code> or <code>index.txt</code>
existed in a directory.</p>
+ <p>A value of "None" prevents <code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code> from
+ searching for an index.</p>
+
+
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="DirectorySlash" id="DirectorySlash">DirectorySlash</a> <a name="directoryslash" id="directoryslash">Directive</a></h2>
<description>List of resources to look for when the client requests
a directory</description>
<syntax>DirectoryIndex
- <var>local-url</var> [<var>local-url</var>] ...</syntax>
+ None | <var>local-url</var> [<var>local-url</var>] ...</syntax>
<default>DirectoryIndex index.html</default>
<contextlist><context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context></contextlist>
<p>would cause the CGI script <code>/cgi-bin/index.pl</code> to be
executed if neither <code>index.html</code> or <code>index.txt</code>
existed in a directory.</p>
+
+ <p>A value of "None" prevents <module>mod_dir</module> from
+ searching for an index.</p>
+
</usage>
</directivesynopsis>
if (!d->index_names) {
d->index_names = apr_array_make(cmd->pool, 2, sizeof(char *));
}
- *(const char **)apr_array_push(d->index_names) = arg;
+ if (strcasecmp(arg, "none")) {
+ *(const char **)apr_array_push(d->index_names) = arg;
+ }
return NULL;
}