Protection de documents sur le Web - Université de Genève, CUI ©


Configuration du serveur WWW pour protéger certains répertoires, un exemple


Dans le fichier access.conf (restrictions globales):

<Directory /user/ub2/eao/www/>
# This controls which options the .htaccess files in directories can
# override. Can also be "None", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"

AllowOverride All

# Controls who can get stuff from this server.

<Limit GET>
order allow,deny
allow from all
</Limit>

</Directory>

Autre exemple:

<Directory /WebRoot/SomeSubdirectory>
Options Indexes MultiViews
AuthUserFile /SomeLocation/.htpasswd
AuthGroupFile /SomeLocation/.htgroups
AuthName "PUT allowed user"
AuthType Basic
<Limit PUT>
require group webmaster
</Limit>
</Directory>

Dans le fichier srm.conf (restrictions par répertoire):

# AccessFileName: The name of the file to look for in each directory
# for access control information.

AccessFileName .htaccess


Bertrand Ibrahim

Dernière modification: 6.11.00

Site Hosting: Bronco