[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-team] <apache> Droit de lecture de repertoire
On Fri, Aug 27, 1999 at 08:03:13PM +0200, Christophe Schockaert wrote:
> Dans le fichier access.conf, tu mets
> <Directory />
> Options None
> Order deny, allow
> Deny from all
> AllowOverride None
> </Directory>
Ce sont les options par défaut, je pense.
[...]
> Ensuite, tjrs dans ce fichier, tu mets:
> <Directory /home>
> Order allow, deny
> Allow from all
> AllowOverride Options
> </Directory>
C'est correct, mais il y a mieux:
<LocationMatch ^/~>
Order allow,deny
Allow from all
AllowOverride Options
</Directory>
> Tu ne dois pas spécifier de répertoire car .htaccess ne concerne que le
> répertoire courant et ses sous-répertoires.
Mais tu peux mettre des options spécifiques à des fichiers, p.ex.:
<Files .* *~>
Order deny,allow
Deny from all
</Files>
Pour empêcher que les fichiers "cachés" et les fichiers de backup soient
visibles. C'est aussi intéressant pour les fichiers contenant des informations
d'authentification (users et groupes)...
--
-o) / Pascal Bleser ATOS Payment Systems|
/\\ \ C++/UNIX Development Aachen, Germany|
_\_v \<guru@linuxbe.org> <pbleser@atos-group.com>|
---------------------------------------------------|
The brain is a wonderful organ; it starts working :
the moment you get up in the morning, and does not :
stop until you get to school. :
---------------------------------------------------'
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.