<br><br>
<div><span class="gmail_quote">Le 16/02/08, <b class="gmail_sendername">Landron Gérard</b> <<a href="mailto:bougler@free.fr">bougler@free.fr</a>> a écrit :</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Le samedi 16 février 2008, Tru Huynh a écrit :<br>> On Sat, Feb 16, 2008 at 06:34:42PM +0100, Landron Gérard wrote:<br>
> > bonsoir,<br>><br>> Bonsoir,<br>><br>> > J'ai installé Centos5 sur un serveur OVH et je n'arrive pas à activer la<br>> > protection par htaccess.<br>> ><br>> > dans httpd.conf j'ai bien les lignes :<br>
> ><br>> > AllowOverride All<br>> > AccessFileName .htaccess<br>><br>> C'est un peu juste comme information...<br>je me sens déjà moins seul !<br>J'ai suivi sans doute mal les indications de :<br>
<a href="http://www.infres.enst.fr/~danzart/frames/htaccess.html">http://www.infres.enst.fr/~danzart/frames/htaccess.html</a><br><br>une ligne de acces_log<br>[16/Feb/2008:17:54:09 +0100] "GET /admin/Fichier_HTML.html HTTP/1.1" 304 -<br>
<br>avec mon fichier test "Fichier_HTML.html" qui se trouve dans le répertoire<br><br>admin qui devrait-être protégé par le . htaccess qui contient :<br><br>AuthName message<br>AuthUserFile /home/sites/monsite/basedenoms/.htpasswd<br>
AuthGroupFile /dev/null<br>AuthType Basic<br><br><limit GET POST><br>require valid-user<br></Limit><br><br>deux lignes du fichier error.log<br>[Sat Feb 16 17:06:30 2008] [error] [client <a href="http://81.56.150.137">81.56.150.137</a>] File does not<br>
exist: /home/sites/monsite/favicon.ico<br>[Sat Feb 16 19:18:11 2008] [error] [client <a href="http://88.80.208.216">88.80.208.216</a>] client sent HTTP/1.1<br>request without hostname (see RFC2616 section<br>14.23): /w00tw00t.at.ISC.SANS.DFind:)<br>
<br>mais rien concernant mon problème<br><br>J'ai trois virtualhost sur la machine dont les fichiers sont dans le  dossier<br>/home/sites/<br>><br>> Il n'y a pas beaucoup de devin dans le coin...<br>il suffit d'un mais surtout ayant tellement tourné en rond, je ne vois plus<br>
trop quelles informations donner<br>> a+<br>Merci<br>> Tru<br>Gérard<br><br>_______________________________________________<br>CentOS-fr mailing list<br><a href="mailto:CentOS-fr@centos.org">CentOS-fr@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-fr">http://lists.centos.org/mailman/listinfo/centos-fr</a><br></blockquote></div>
<div><br>Bonjour,</div>
<div> </div>
<div>Si ça peut aider:</div>
<p><font size="1">AuthUserFile "/var/www/html/.htpasswd"</font></p>
<p><font size="1">AuthName "Accès protégé"</font></p>
<p><font size="1">AuthType Basic</font></p>
<p><font size="1"><LIMIT GET POST>Require valid-user</LIMIT></font></p>
<div>Donc ton problème ce trouve sûrement dans la configuration pour les utilisateurs exemple:</div>
<div> </div>
<div>
<p><font size="1">#</font></p>
<p><font size="1"># Control access to UserDir directories. The following is an example</font></p>
<p><font size="1"># for a site where these directories are restricted to read-only.</font></p>
<p><font size="1">#</font></p>
<p><font size="1">#<Directory /home/*/public_html></font></p>
<p><font size="1"># AllowOverride FileInfo AuthConfig Limit</font></p>
<p><font size="1"># Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec</font></p>
<p><font size="1"># <Limit GET POST OPTIONS></font></p>
<p><font size="1"># Order allow,deny</font></p>
<p><font size="1"># Allow from all</font></p>
<p><font size="1"># </Limit></font></p>
<p><font size="1"># <LimitExcept GET POST OPTIONS></font></p>
<p><font size="1"># Order deny,allow</font></p>
<p><font size="1"># Deny from all</font></p>
<p><font size="1"># </LimitExcept></font></p>
<p><font size="1">#</Directory></font></p></div>
<div><font size="1">
<p>#</p>
<p># AccessFileName: The name of the file to look for in each directory</p>
<p># for additional configuration directives. See also the AllowOverride</p>
<p># directive.</p>
<p>#</p>
<p>AccessFileName .htaccess</p>
<p>#</p>
<p># The following lines prevent .htaccess and .htpasswd files from being </p>
<p># viewed by Web clients. </p>
<p>#</p>
<p><Files ~ "^\.ht"></p>
<p>Order allow,deny</p>
<p>Deny from all</p>
<p></Files></p></font><br clear="all"><br>-- <br>Cordialement,<br><br>L'équipe LSIPM.com<br>Pascal Morel <br> </div>