[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] disable directory listing on raq550
- Subject: [cobalt-users] disable directory listing on raq550
- From: "Christophe Besnard" <technique@xxxxxxxxx>
- Date: Wed Jul 23 01:58:03 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I want to disable directory listing for a vsite,
to do this I put a .htaccess file in the /web directory with the line :
Options -Indexes
but I got an "Server Error" and a line in error.log say that Options is not
Allowed there,
can somobody help me ?
here's my access.conf :
[admin conf]$ more access.conf
##
## access.conf -- Apache HTTP server configuration file
##
# access.conf: Global access configuration
# Online docs at http://www.apache.org/
# This file defines server settings which affect which types of services
# are allowed, and in what circumstances.
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
# Originally by Rob McCool
# First, we configure the "default" to be a very restrictive set of
# permissions.
<Directory />
Options None
AllowOverride AuthConfig Indexes Limit
</Directory>
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
# deal with symlinks in image directory
<Directory /usr/sausalito/ui/web/error/>
Options +MultiViews
</Directory>
# This should be changed to whatever you set DocumentRoot to.
<Directory /home/.sites/>
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
Options Indexes FollowSymLinks Includes MultiViews
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride AuthConfig Indexes Limit
# ignore .ht*
<Files ".ht*">
deny from all
</Files>
# Controls who can get stuff from this server.
order allow,deny
allow from all
</Directory>
# be more restrictive within a site
<Directory /home/.sites/*/*/>
Options -FollowSymLinks +SymLinksIfOwnerMatch
</Directory>
# @@ServerRoot@@/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#<Directory /home/httpd/cgi-bin>
#AllowOverride None
#Options ExecCGI
#</Directory>
# Allow server status reports, with the URL of
http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#<Location /server-status>
#SetHandler server-status
#order deny,allow
#deny from all
#allow from .your_domain.com
#</Location>
# There have been reports of people trying to abuse an old bug from pre-1.1
# days. This bug involved a CGI script distributed as a part of Apache.
# By uncommenting these lines you can redirect these attacks to a logging
# script on phf.apache.org. Or, you can record them yourself, using the
script
# support/phf_abuse_log.cgi.
#<Location /cgi-bin/phf*>
#deny from all
#ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
#</Location>
# You may place any other directories or locations you wish to have
# access information for after this one.
[admin conf]$