httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "DirectoryListings" by Greg Martin
Date Fri, 31 Aug 2012 12:41:37 GMT
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


Mime
View raw message