<br><br>
<div><span class="gmail_quote">Le 16/02/08, <b class="gmail_sendername">Landron Gérard</b> &lt;<a href="mailto:bougler@free.fr">bougler@free.fr</a>&gt; 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>&gt; On Sat, Feb 16, 2008 at 06:34:42PM +0100, Landron Gérard wrote:<br>
&gt; &gt; bonsoir,<br>&gt;<br>&gt; Bonsoir,<br>&gt;<br>&gt; &gt; J&#39;ai installé Centos5 sur un serveur OVH et je n&#39;arrive pas à activer la<br>&gt; &gt; protection par htaccess.<br>&gt; &gt;<br>&gt; &gt; dans httpd.conf j&#39;ai bien les lignes :<br>
&gt; &gt;<br>&gt; &gt; AllowOverride All<br>&gt; &gt; AccessFileName .htaccess<br>&gt;<br>&gt; C&#39;est un peu juste comme information...<br>je me sens déjà moins seul !<br>J&#39;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] &quot;GET /admin/Fichier_HTML.html HTTP/1.1&quot; 304 -<br>
<br>avec mon fichier test &quot;Fichier_HTML.html&quot; 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>&lt;limit GET POST&gt;<br>require valid-user<br>&lt;/Limit&gt;<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&#39;ai trois virtualhost sur la machine dont les fichiers sont dans le&nbsp;&nbsp;dossier<br>/home/sites/<br>&gt;<br>&gt; Il n&#39;y a pas beaucoup de devin dans le coin...<br>il suffit d&#39;un mais surtout ayant tellement tourné en rond, je ne vois plus<br>
trop quelles informations donner<br>&gt; a+<br>Merci<br>&gt; 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>&nbsp;</div>
<div>Si ça peut aider:</div>
<p><font size="1">AuthUserFile &quot;/var/www/html/.htpasswd&quot;</font></p>
<p><font size="1">AuthName &quot;Accès protégé&quot;</font></p>
<p><font size="1">AuthType Basic</font></p>
<p><font size="1">&lt;LIMIT GET POST&gt;Require valid-user&lt;/LIMIT&gt;</font></p>
<div>Donc ton problème ce trouve sûrement dans la configuration pour les utilisateurs exemple:</div>
<div>&nbsp;</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">#&lt;Directory /home/*/public_html&gt;</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"># &lt;Limit GET POST OPTIONS&gt;</font></p>
<p><font size="1"># Order allow,deny</font></p>
<p><font size="1"># Allow from all</font></p>
<p><font size="1"># &lt;/Limit&gt;</font></p>
<p><font size="1"># &lt;LimitExcept GET POST OPTIONS&gt;</font></p>
<p><font size="1"># Order deny,allow</font></p>
<p><font size="1"># Deny from all</font></p>
<p><font size="1"># &lt;/LimitExcept&gt;</font></p>
<p><font size="1">#&lt;/Directory&gt;</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>&lt;Files ~ &quot;^\.ht&quot;&gt;</p>
<p>Order allow,deny</p>
<p>Deny from all</p>
<p>&lt;/Files&gt;</p></font><br clear="all"><br>-- <br>Cordialement,<br><br>L&#39;équipe LSIPM.com<br>Pascal Morel <br>&nbsp;</div>