Website Setup & Info

ID #1042

How do I allow directory listings in Apache?

By default, GeekISP's Apache instances won't provide a directory listing as a privacy feature. If you'd like to enable directory listings, simply create a .htaccess file in the directory in question, and add the following:

Options +Indexes

So, the complete sequence looks like:

$ cd www.example.com/htdocs/foo

$ echo "Options +Indexes" > .htaccess

Tags: -

Related entries:

Last update: 2005-12-18 15:50
Author: Dave Steinberg
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 2.86 out of 5 (14 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry