Problem have Apache display the "directory listing"
stephen goldman
sgoldman-3s7WtUTddSA at public.gmane.org
Sun Mar 27 11:48:59 EDT 2011
Good morning,
I wish to create a web site I can copy software from. Later wish to restrict access to an htpasswd file.
Having trouble configuring apache to display directory listing from the web site.
The directory's path in shared 755 - an index.html file works file.
I 've tried many options with no success. Open to new ideas please.
Thanks,
Stephen
HTTP/1.1 200 OK
Date: Sun, 27 Mar 2011 14:25:56 GMT
Server: Apache/2.2.3 (Red Hat)
Last-Modified: Thu, 03 Mar 2011
#DocumentRoot "/var/www/html"#
DocumentRoot "/data/biomicro/web"
#<Directory "/var/www/html">#
<Directory "/data/biomicro/web">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var
Options +Indexes
This should enable auto-index.
Stephen Goldman
System Administrator
Department of Biology
Massachusetts Institute of Technology
31 Ames Street, 68-316e
Cambridge, Ma. 02139
617-452-2595
More information about the Discuss
mailing list