[risolto] apache e browsing directory
Inviato: mar 13 mag 2008, 16:45
salve, come bisogna configurare apache per impedire che i client possano sfogliare le directory del server?
http://httpd.apache.org/docs/2.2/mod/core.htmlsya54M ha scritto:salve, come bisogna configurare apache per impedire che i client possano sfogliare le directory del server?
Codice: Seleziona tutto
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>Quella non è la directory principale, devi guardare nella Directory htdocssya54M ha scritto:grazie conraid, ma non ci ho capito niente in quell enorme pagina in inglese... cè una guida in italiano?
ora in httpd.conf cè questo:ho provato a mettere Directive al posto di None e non partiva piu il server...Codice: Seleziona tutto
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory>
Codice: Seleziona tutto
<Directory "/srv/httpd/htdocs">
#
# 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
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Codice: Seleziona tutto
Options -Indexes FollowSymLinks