[CentOS-fr] htaccess

LSIPM Enr indxweb at gmail.com
Sam 16 Fév 19:34:24 UTC 2008


Le 16/02/08, Landron Gérard <bougler at free.fr> a écrit :
>
> Le samedi 16 février 2008, Tru Huynh a écrit :
> > On Sat, Feb 16, 2008 at 06:34:42PM +0100, Landron Gérard wrote:
> > > bonsoir,
> >
> > Bonsoir,
> >
> > > J'ai installé Centos5 sur un serveur OVH et je n'arrive pas à activer
> la
> > > protection par htaccess.
> > >
> > > dans httpd.conf j'ai bien les lignes :
> > >
> > > AllowOverride All
> > > AccessFileName .htaccess
> >
> > C'est un peu juste comme information...
> je me sens déjà moins seul !
> J'ai suivi sans doute mal les indications de :
> http://www.infres.enst.fr/~danzart/frames/htaccess.html
>
> une ligne de acces_log
> [16/Feb/2008:17:54:09 +0100] "GET /admin/Fichier_HTML.html HTTP/1.1" 304 -
>
> avec mon fichier test "Fichier_HTML.html" qui se trouve dans le répertoire
>
> admin qui devrait-être protégé par le . htaccess qui contient :
>
> AuthName message
> AuthUserFile /home/sites/monsite/basedenoms/.htpasswd
> AuthGroupFile /dev/null
> AuthType Basic
>
> <limit GET POST>
> require valid-user
> </Limit>
>
> deux lignes du fichier error.log
> [Sat Feb 16 17:06:30 2008] [error] [client 81.56.150.137] File does not
> exist: /home/sites/monsite/favicon.ico
> [Sat Feb 16 19:18:11 2008] [error] [client 88.80.208.216] client sent
> HTTP/1.1
> request without hostname (see RFC2616 section
> 14.23): /w00tw00t.at.ISC.SANS.DFind:)
>
> mais rien concernant mon problème
>
> J'ai trois virtualhost sur la machine dont les fichiers sont dans
> le  dossier
> /home/sites/
> >
> > Il n'y a pas beaucoup de devin dans le coin...
> il suffit d'un mais surtout ayant tellement tourné en rond, je ne vois
> plus
> trop quelles informations donner
> > a+
> Merci
> > Tru
> Gérard
>
> _______________________________________________
> CentOS-fr mailing list
> CentOS-fr at centos.org
> http://lists.centos.org/mailman/listinfo/centos-fr
>

Bonjour,

Si ça peut aider:

AuthUserFile "/var/www/html/.htpasswd"

AuthName "Accès protégé"

AuthType Basic

<LIMIT GET POST>Require valid-user</LIMIT>
Donc ton problème ce trouve sûrement dans la configuration pour les
utilisateurs exemple:


#

# Control access to UserDir directories. The following is an example

# for a site where these directories are restricted to read-only.

#

#<Directory /home/*/public_html>

# AllowOverride FileInfo AuthConfig Limit

# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

# <Limit GET POST OPTIONS>

# Order allow,deny

# Allow from all

# </Limit>

# <LimitExcept GET POST OPTIONS>

# Order deny,allow

# Deny from all

# </LimitExcept>

#</Directory>

#

# AccessFileName: The name of the file to look for in each directory

# for additional configuration directives. See also the AllowOverride

# directive.

#

AccessFileName .htaccess

#

# The following lines prevent .htaccess and .htpasswd files from being

# viewed by Web clients.

#

<Files ~ "^\.ht">

Order allow,deny

Deny from all

</Files>


-- 
Cordialement,

L'équipe LSIPM.com
Pascal Morel
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.centos.org/pipermail/centos-fr/attachments/20080216/65e93a00/attachment.html>


Plus d'informations sur la liste de diffusion CentOS-fr