You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2012/08/31 14:41:37 UTC
[Httpd Wiki] Update of "DirectoryListings" by Greg Martin
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "DirectoryListings" page has been changed by Greg Martin:
http://wiki.apache.org/httpd/DirectoryListings?action=diff&rev1=7&rev2=8
== Directory Listings ==
- If no file from the DirectoryIndex directive can be located in the directory, then [[http://httpd.apache.org/docs/trunk/mod/mod_autoindex.html|mod_autoindex]] can generate a listing of the directory contents. This is turned on and off using the [[http://httpd.apache.org/docs/trunk/mod/core.html#options|Options]] directive. For example, to turn on directory listings for a particular directory, you can use
+ If no file from the DirectoryIndex directive can be located in the directory, then [[http://httpd.apache.org/docs/trunk/mod/mod_autoindex.html|mod_autoindex]] can generate a listing of the directory contents. This is turned on and off using the [[http://httpd.apache.org/docs/trunk/mod/core.html#options|Options]] directive. For example, to turn on directory listings for a particular directory, you can use:
{{{
<Directory /usr/local/apache2/htdocs/listme>
@@ -29, +29 @@
</Directory>
}}}
- To prevent directory listings (for security purposes, for example), you should remove the {{{Indexes}}} keyword from every Options directive in your configuration file. Or to prevent them only for a single directory, you can use
+ To prevent directory listings (for security purposes, for example), you should remove the {{{Indexes}}} keyword from every Options directive in your configuration file. Or to prevent them only for a single directory, you can use:
{{{
<Directory /usr/local/apache2/htdocs/dontlistme>
@@ -39, +39 @@
=== Excluding Files ===
- If you would like listings to be enabled, but you want to omit particular files, you can use the [[http://httpd.apache.org/docs/trunk/mod/mod_autoindex.html#indexignore|IndexIgnore]] directive. For example, to omit any filename starting with {{{tmp}}} and also the parent directory link (..), you could use
+ If you would like listings to be enabled, but you want to omit particular files, you can use the [[http://httpd.apache.org/docs/trunk/mod/mod_autoindex.html#indexignore|IndexIgnore]] directive. For example, to omit any filename starting with {{{tmp}}} and also the parent directory link (..), you could use:
{{{
IndexIgnore tmp* ..
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org