<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.llaumgui.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Le blog de llaumgui - apache</title>
  <link>http://www.llaumgui.com/</link>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Thu, 24 Jul 2008 21:31:14 +0200</pubDate>
  <copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Pimp my Dotclear Acte II</title>
    <link>http://www.llaumgui.com/post/Pimp-my-Dotclear-Acte-II</link>
    <guid isPermaLink="false">urn:md5:8e8bfcd96c1f81f24d4454531e21539c</guid>
    <pubDate>Tue, 22 Apr 2008 20:42:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>apache</category><category>Dotclear</category><category>référencement</category><category>spam</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://www.dotclear.net/blog/post/2008/04/05/En-mai-fais-ce-quil-te-plait&quot; hreflang=&quot;fr&quot; title=&quot;En mai fais ce qu'il te plaît&quot;&gt;Dotclear 2.0 RC1 arrivant à grands pas&lt;/a&gt;, on continue avec les exemples de mise en œuvre de &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.dotclear.net&quot; title=&quot;Gestionnaire de blog&quot;&gt;ce gestionnaire de blog&lt;/a&gt; simple et efficace.&lt;br /&gt;
&lt;a href=&quot;http://www.llaumgui.com/post/Pimp-my-Dotclear&quot; hreflang=&quot;fr&quot; title=&quot;Pimp my Dotclear ;-)&quot;&gt;Après la sécurité et l'optimisation de Dotclear&lt;/a&gt;, aujourd'hui : les &lt;a hreflang=&quot;fr&quot; href=&quot;http://fr.wikipedia.org/wiki/R%C3%A9trolien&quot;&gt;rétroliens&lt;/a&gt; (ou trackbacks) et les plugins pour Dotclear qui vont bien. Vous pouvez, à ce propos, &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.llaumgui.com/plugins-liste&quot;&gt;consulter la liste des plugins déployés sur ce blog&lt;/a&gt;.&lt;/p&gt;    &lt;h2&gt;Rétroliens et anti-spam&lt;/h2&gt;
&lt;p&gt;Les rétroliens sont un super outil permettant à la discussion de dériver et de se poursuivre ailleurs. Le problème est que les trackbacks sont trop souvent victimes du SPAM et les bloggeurs ont alors tendance à les désactiver (ce qui était mon cas jusqu'à il y a peu).&lt;/p&gt;
&lt;p&gt;La solution, pour pouvoir utiliser les trackbacks sereinement : le &lt;a hreflang=&quot;fr&quot; href=&quot;http://plugins.dotaddict.org/dc2/details/Retrocontrole&quot; title=&quot;Filtre antispam pour les rétroliens.&quot;&gt;plugin rétrocontrôle&lt;/a&gt; configuré pour effacer directement les rétroliens indésirables, sans passer par la case corbeille.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.llaumgui.com/public/images/web/dotclear/filtre_antispam_dotclear2.png&quot;&gt;&lt;img src=&quot;http://www.llaumgui.com/public/images/web/dotclear/.filtre_antispam_dotclear2_m.jpg&quot; alt=&quot;Filtre anti-spam dans Dotclear&quot; style=&quot;margin: 0 auto; display: block;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Au passage, vous constatez que, pour le moment, ma configuration anti-spam est plutôt légère, j'ai donc encore des armes pour me défendre.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.llaumgui.com/public/images/web/dotclear/configuration_retrocontrole.png&quot; alt=&quot;Configuration de rétrocontrôle&quot; style=&quot;margin: 0 auto; display: block;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Je n'ai pas non plus activé l'option &amp;quot;&lt;em&gt;adresses jetables&lt;/em&gt;&amp;quot; car je ne suis pas sûr de sa compatibilité avec le &lt;a href=&quot;http://dev.dotclear.net/2.0/browser/plugins/staticCache&quot; hreflang=&quot;fr&quot;&gt;plugin Static Cache&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;miniSEO :&lt;/h2&gt;
&lt;p&gt;Comme le montre &lt;a hreflang=&quot;fr&quot; href=&quot;http://whois.domaintools.com/www.llaumgui.com&quot;&gt;ce calculateur&lt;/a&gt; (au résultat plus que discutable je vous l'accorde), le &lt;acronym title=&quot;Search Engine Optimisation&quot;&gt;SEO&lt;/acronym&gt; du blog frôle la perfection (97%) et ce grâce, entre autres, au &lt;a href=&quot;http://plugins.dotaddict.org/dc2/details/miniSEO&quot; hreflang=&quot;fr&quot; title=&quot;Remplit la balise meta description pour chaque billet&quot;&gt;plugin miniSEO&lt;/a&gt; qui peut être couplé avec &lt;a href=&quot;http://plugins.dotaddict.org/dc2/details/Mymeta&quot; hreflang=&quot;fr&quot; title=&quot;Définition de métadonnées personnalisées&quot;&gt;MyMeta&lt;/a&gt; comme le conseille l'auteur sur &lt;a href=&quot;http://www.myouaibe.com/index.php/post/2008/03/26/Plugin-miniSEO&quot; hreflang=&quot;fr&quot; title=&quot;Plugin miniSEO (billet support)&quot;&gt;le billet de support&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;MyMeta&lt;/h2&gt;
&lt;p&gt;Vous l'aurez peut être remarqué, une image illustre mes billets. Cette image est soit celle associée à la catégorie du billet, soit celle d'un tag. Pour cela j'utilise le plugin MyMeta :&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.llaumgui.com/public/images/web/dotclear/mymeta.png&quot;&gt;&lt;img src=&quot;http://www.llaumgui.com/public/images/web/dotclear/.mymeta_m.jpg&quot; alt=&quot;Configuration du plugin MyMeta&quot; style=&quot;margin: 0 auto; display: block;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Je peux ensuite appliquer à un billet une illustration en fonction d'un tag grâce à ce template :&lt;/p&gt;
&lt;code class=&quot;html4strict&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;tpl:MyMetaIf &lt;span style=&quot;color: #000066;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;tag-illustration&amp;quot;&lt;/span&gt; defined=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;false&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;tpl:EntryIf has_category=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/a.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;{{tpl:EntryCategoryURL}}&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;category-illustration cat_{{tpl:EntryCategoryID}}&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;title&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;{{tpl:EntryCategory}}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #ddbb00;&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;/tpl:EntryIf&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;/tpl:MyMetaIf&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;tpl:MyMetaIf &lt;span style=&quot;color: #000066;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;tag-illustration&amp;quot;&lt;/span&gt; defined=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/a.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;{{tpl:BlogURL}}tag/{{tpl:MyMetaValue type=&amp;quot;&lt;/span&gt;tag-illustration&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;}}&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;category-illustration&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;title&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;{{tpl:MyMetaValue type=&amp;quot;&lt;/span&gt;tag-illustration&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;}}&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;style&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;background: transparent url(/themes/nodoka/img/tag/{{tpl:MyMetaValue type=&amp;quot;&lt;/span&gt;tag-illustration&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;}}.png) 0 0 no-repeat;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #ddbb00;&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;/tpl:MyMetaIf&amp;gt;&lt;/span&gt;&lt;/code&gt;
&lt;h2&gt;Pages&lt;/h2&gt;
&lt;p&gt;La révision &lt;a hreflang=&quot;fr&quot; href=&quot;http://dev.dotclear.net/2.0/changeset/1729&quot;&gt;#1729&lt;/a&gt; de Dotclear introduit &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.dotclear.net/blog/post/2008/04/20/Nouveau-plugin-pour-Dotclear-2-%3A-pages&quot; title=&quot;Nouveau plugin pour Dotclear 2 : pages&quot;&gt;le plugin Pages&lt;/a&gt; remplaçant avantageusement le &lt;a hreflang=&quot;fr&quot; href=&quot;http://plugins.dotaddict.org/dc2/details/Related-Pages&quot; title=&quot;Ajoutez des pages connexes à votre blog&quot;&gt;plugin Related&lt;/a&gt; que j'utilisais jusqu'à présent. C'est maintenant &amp;quot;&lt;em&gt;Pages&lt;/em&gt;&amp;quot; qui gère les pages suivantes :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.llaumgui.com/pages/a-propos&quot; hreflang=&quot;fr&quot;&gt;A propos de ce blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.llaumgui.com/pages/credits-mentions-legales&quot; hreflang=&quot;fr&quot;&gt;Crédits &amp;amp; mentions légales&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://cv.llaumgui.com/&quot; hreflang=&quot;fr&quot;&gt;Curriculum vitæ de Guillaume Kulakowski&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Notez au passage qu'avec une petite règle apache, le plugin Pages peut faire correspondre une page du blog à un sous domaine :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;RewriteCond %&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; ^cv.llaumgui.com&lt;br /&gt;
RewriteRule ^index.php$ index.php/pages/curriculum &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;L&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/code&gt;
&lt;h2&gt;Subscribe to comments&lt;/h2&gt;
&lt;p&gt;En plus du flux RSS associé aux commentaires d'un billets, natifs dans Dotclear, le plugin &lt;a href=&quot;http://plugins.dotaddict.org/dc2/details/Subscribe-to-comments&quot; hreflang=&quot;fr&quot;&gt;Subscribe to comments&lt;/a&gt; permet à vos visiteurs de s'abonner  par email aux nouveaux commentaires.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Pimp-my-Dotclear-Acte-II#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Pimp-my-Dotclear-Acte-II#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/419</wfw:commentRss>
      </item>
    
  <item>
    <title>Pimp my Dotclear ;-)</title>
    <link>http://www.llaumgui.com/post/Pimp-my-Dotclear</link>
    <guid isPermaLink="false">urn:md5:c3b7d97d6b46184b80195e53d5a80e41</guid>
    <pubDate>Mon, 21 Apr 2008 22:35:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>apache</category><category>Dotclear</category><category>fedora-fr</category><category>sécurité</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://www.dotclear.net/&quot; hreflang=&quot;fr&quot; title=&quot;Gestionnairede blog&quot;&gt;Dotclear&lt;/a&gt; est un logiciel simple et léger permettant de créer son blog (comme ici) ou de mettre en place une plateforme de blog pouvant héberger plusieurs blogs comme c'est le cas sur &lt;a href=&quot;http://blog.fedora-fr.org/&quot; hreflang=&quot;fr&quot; title=&quot;Plateforme de blogs Libres fedora-fr (bêta)&quot;&gt;la plateforme de blog de fedora-fr&lt;/a&gt;.&lt;/p&gt;    &lt;h2&gt;Optimiser Dotclear&lt;/h2&gt;
&lt;h3&gt;Utilisation de connexions persistantes&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;http://www.geeek.org/post/2007/07/31/Utilisation-des-connexions-pesistantes-dans-Dotclear2&quot; hreflang=&quot;fr&quot; title=&quot;Utilisation des connexions persistantes dans Dotclear2&quot;&gt;Ludovic en parlait&lt;/a&gt; sur &lt;a href=&quot;http://www.geeek.org&quot; hreflang=&quot;fr&quot; title=&quot;Blog de Geeek&quot;&gt;son Blog&lt;/a&gt;, les connexions persistantes sont à présent directement configurables depuis le fichier config.php de Dotclear :&lt;/p&gt;
&lt;code class=&quot;php&quot;&gt;&lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;define&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DC_DBPERSIST'&lt;/span&gt;,&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/code&gt;
&lt;h3&gt;Cache statique&lt;/h3&gt;
&lt;p&gt;Toujours en développement, &lt;a href=&quot;https://svn.dotclear.net/2.0/plugins/staticCache/&quot; hreflang=&quot;fr&quot;&gt;le plugin staticCache est disponible via le dépôt SVN&lt;/a&gt;. Il permet de générer non pas du code php comme le fait le cache de template mais de stocker du code HTML qui sera directement rendu aux visiteurs de votre blog.&lt;/p&gt;
&lt;p&gt;Pour l'activer, ça se passe encore dans le fichier config.php&lt;/p&gt;
&lt;code class=&quot;php&quot;&gt;&lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;define&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DC_SC_CACHE_ENABLE'&lt;/span&gt;, &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/code&gt;
&lt;h2&gt;Sécuriser son Dotclear&lt;/h2&gt;
&lt;p&gt;La première chose à faire pour sécuriser son Dotclear est de le mettre à jour. En effet, &lt;a href=&quot;http://www.dotclear.net/blog/post/2008/04/17/Dotclear-20-beta-701&quot; hreflang=&quot;fr&quot; title=&quot;Dotclear 2.0 beta 7.0.1&quot;&gt;des failles de sécurité ont récemment étaient découvertes&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;La gestion des uploads&lt;/h3&gt;
&lt;p&gt;Si vous êtes le seul à utiliser votre blog, la question se pose moins, mais si d'autres personnes utilisent le système d'upload, ils pourraient très bien envoyer des fichier php sur le serveur et les exécuter. Toujours dans le domaine de la supposition, ces fichiers pourraient permettre d'inclure le fichier config.php et d'en parcourir le contenu, dévoilant ainsi les mots de passe de la connexion à la base de données. Sur un serveur très très mal configuré, ces fichiers pourraient aller jusqu'à lire des fichiers du répertoire /etc/ !&lt;/p&gt;
&lt;p&gt;Pas de panique : depuis la révision &lt;a href=&quot;http://dev.dotclear.net/2.0/changeset/1714&quot;&gt;#1714&lt;/a&gt;, Dotclear permet d'exclure des extensions de fichier du gestionnaire de médias et ce via la directive &lt;em&gt;media_exclusion&lt;/em&gt; du plugin &lt;em&gt;about:config&lt;/em&gt; (&lt;a href=&quot;http://www.dotclear.net/blog/post/2008/04/18/Gestionnaire-de-media-et-types-de-fichiers&quot; hreflang=&quot;fr&quot; title=&quot;Gestionnaire de média et types de fichiers&quot;&gt;plus d'infos&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Empêcher l'upload de fichier php c'est bien, mais empêcher l'exécution de fichier php dans le répertoire public, c'est mieux. Pour cela, on configurera apache :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;&amp;lt;Location ~ &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;public/.*&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\.&lt;/span&gt;php$&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;ForceType text/plain&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;RemoveHandler php&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Pimp-my-Dotclear#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Pimp-my-Dotclear#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/418</wfw:commentRss>
      </item>
    
  <item>
    <title>Connexion apache sécurisée par SSL en place sur spb-box (https)</title>
    <link>http://www.llaumgui.com/post/Connexion-apache-securisee-par-SSL-en-place-sur-spb-box-https</link>
    <guid isPermaLink="false">urn:md5:ae47149a0e809526a69e990e4b5bde5d</guid>
    <pubDate>Thu, 13 Sep 2007 22:28:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>apache</category><category>serveur</category><category>spb-box</category><category>SSL</category><category>Subversion</category>    
    <description>    &lt;p&gt;Après pas mal de galères et de tâtonnements, j'ai enfin réussi à installer des certificats &lt;a href=&quot;http://fr.wikipedia.org/wiki/SSL&quot; hreflang=&quot;fr&quot;&gt;&lt;acronym title=&quot;Secure Socket Layer&quot;&gt;SSL&lt;/acronym&gt;&lt;/a&gt; sur la &lt;a href=&quot;http://www.llaumgui.com/tag/spb-box&quot;&gt;spb-box&lt;/a&gt;. Je tiens d'ailleurs à remercier l'ami &lt;a href=&quot;http://remi.collet.free.fr/&quot; hreflang=&quot;fr&quot;&gt;Remi&lt;/a&gt; qui m'a un peu blasé en trouvant le problème en 5 minutes.
Dorénavant mon serveur &lt;a href=&quot;http://subversion.tigris.org/&quot; hreflang=&quot;fr&quot;&gt;SVN&lt;/a&gt; n'est plus sur http://svn.llaumgui.com mais sur &lt;a hreflang=&quot;fr&quot; href=&quot;https://svn.llaumgui.com&quot;&gt;https://svn.llaumgui.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;J'en ai aussi profité pour mettre &lt;a href=&quot;http://www.phpmyadmin.net&quot; hreflang=&quot;en&quot; title=&quot;MySQL Database Administration Tool&quot;&gt;phpMyAdmin&lt;/a&gt; derrière une connexion SSL ce qui est plus prudent.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Connexion-apache-securisee-par-SSL-en-place-sur-spb-box-https#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Connexion-apache-securisee-par-SSL-en-place-sur-spb-box-https#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/354</wfw:commentRss>
      </item>
    
  <item>
    <title>Une petite Dedibox sous CentOS</title>
    <link>http://www.llaumgui.com/post/Une-petite-Dedibox-sous-CentOS</link>
    <guid isPermaLink="false">urn:md5:5486c12097143eb63f64ddf97017fa85</guid>
    <pubDate>Wed, 04 Jul 2007 22:57:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>apache</category><category>CentOS</category><category>Debian</category><category>Dedibox</category><category>MySQL</category><category>paintBall</category><category>serveur</category>    
    <description>    &lt;p&gt;Comme certains le savent peut être, je suis fan de &lt;a href=&quot;http://www.llaumgui.com/tag/PaintBall&quot;&gt;PaintBall&lt;/a&gt; et j'administre avec mon pote &lt;a href=&quot;http://forums.scenario-paintball.com/index.php?showuser=2&quot; hreflang=&quot;fr&quot;&gt;Radinus&lt;/a&gt;, &lt;a href=&quot;http://www.scenario-paintball.com&quot; hreflang=&quot;fr&quot; title=&quot;Scénario-PaintBall, le repaire des fougères&quot;&gt;la plus grosse communauté francophone de paintball scénarisé&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Avec une base de données &lt;a href=&quot;http://www-fr.mysql.com/&quot; hreflang=&quot;fr&quot;&gt;MySQL&lt;/a&gt; qui grandie chaque jour (laisse tomber la manipulation de 200Mo sur un mutu' sans le shell) et les sites satellites qui vont arriver, il fallait se prendre un petit dédié.&lt;br /&gt;
Le choix s'est donc porté sur une &lt;a href=&quot;http://www.dedibox.fr/&quot; hreflang=&quot;fr&quot; title=&quot;Dedibox - Votre serveur dédié pour 29,99 Euros / mois trafic illimité&quot;&gt;Dedibox&lt;/a&gt; (pas pour rien qu'on l'appel Radinus) et pour le système d'exploitation, j'ai choisis &lt;a href=&quot;http://www.centos.org/&quot; hreflang=&quot;fr&quot; title=&quot;The Community ENTerprise Operating System&quot;&gt;CentOS&lt;/a&gt; 5.0, pourquoi ?&lt;/p&gt;
&lt;p&gt;Les raisons sont multiples :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.kaliop.com&quot; hreflang=&quot;fr&quot;&gt;Professionnellement&lt;/a&gt;, j'administre du &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.debian.org/&quot; title=&quot;Debian, le système d'exploitation universel&quot;&gt;Debian&lt;/a&gt;, une CentOS me permet d'acquérir de nouvelles expériences et de prendre une bouffée de &lt;a href=&quot;http://fr.wikipedia.org/wiki/RPM_Package_Manager&quot; hreflang=&quot;fr&quot; title=&quot;RPM Package Manager&quot;&gt;RPM&lt;/a&gt; dans un monde de &lt;a href=&quot;http://fr.wikipedia.org/wiki/Deb&quot; hreflang=&quot;fr&quot;&gt;deb&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;C'est la famille (représente le chapeau !).&lt;/li&gt;
&lt;li&gt;Autant je kiff &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.fedora-fr.org&quot;&gt;Fedora&lt;/a&gt; pour du desk, autant son cycle de vie accéléré est moyen pour du serveur. Donc, dans la famille &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.redhat.fr/&quot;&gt;Red Hat&lt;/a&gt;, je demande le serveur au support gratuit : CentOS; bonne pioche.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Bref, pour le moment le strict minimum tourne dessus (apache/MySQL/Postfix) et je commence à transférer les petits sites satellites avant de passer &lt;a href=&quot;http://forums.scenario-paintball.com&quot; hreflang=&quot;fr&quot;&gt;au gros forum&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Une-petite-Dedibox-sous-CentOS#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Une-petite-Dedibox-sous-CentOS#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/330</wfw:commentRss>
      </item>
    
  <item>
    <title>Obtenir tous les domaines configurés sur un serveur</title>
    <link>http://www.llaumgui.com/post/Obtenir-tous-les-domaines-configures-sur-un-serveur</link>
    <guid isPermaLink="false">urn:md5:66be51199c2ea31e2896524a7ce4c849</guid>
    <pubDate>Mon, 12 Feb 2007 17:52:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>apache</category><category>serveur</category>    
    <description>    &lt;p&gt;Voici une petite astuce pour récupérer tous les domaines configurés sur un serveur &lt;a hreflang=&quot;en&quot; href=&quot;http://httpd.apache.org/&quot;&gt;apache&lt;/a&gt; :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; vhost &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; /etc/httpd/&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;users&lt;/span&gt;/*; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$vhost&amp;quot;&lt;/span&gt; | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;grep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\(&lt;/span&gt;ServerName&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\|&lt;/span&gt;ServerAlias&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\)&lt;/span&gt;'&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;;&lt;/code&gt;&lt;p&gt;Cela dépend bien sur de la façon dont vos &lt;a hreflang=&quot;en&quot; href=&quot;http://httpd.apache.org/docs/2.0/vhosts/&quot;&gt;vhost&lt;/a&gt; sont configurés. S'ils sont tous dans le fichier httpd.conf :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; /etc/httpd/conf/httpd.conf | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;grep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\(&lt;/span&gt;ServerName&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\|&lt;/span&gt;ServerAlias&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\)&lt;/span&gt;'&lt;/span&gt;&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Obtenir-tous-les-domaines-configures-sur-un-serveur#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Obtenir-tous-les-domaines-configures-sur-un-serveur#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/149</wfw:commentRss>
      </item>
    
  <item>
    <title>Le site de l'UMP sous eZ publish</title>
    <link>http://www.llaumgui.com/post/Le-site-de-lUMP-sous-eZ-publish</link>
    <guid isPermaLink="false">urn:md5:207f2025d40923f2418aeef73c21c9b7</guid>
    <pubDate>Sat, 02 Dec 2006 10:44:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Geek Attitude</category>
        <category>accessibilité</category><category>apache</category><category>eZ Publish</category><category>libre</category><category>référencement</category><category>standards</category>    
    <description>&lt;p&gt;C'est au cour d'une séance de surf, afin de trouver la vidéo de l'émission &amp;quot;&lt;a href=&quot;http://programmes.france2.fr/a-vous-de-juger&quot; hreflang=&quot;fr&quot;&gt;A vous de juger&lt;/a&gt;&amp;quot; de jeudi, avec Nicolas Sarkozy (que je n'ai pu voir pour cause de &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.lastjeudi.org/&quot;&gt;Jeudi du libre&lt;/a&gt;) que je me suis rendu compte d'une chose sur le site de l'&lt;a hreflang=&quot;fr&quot; href=&quot;http://www.u-m-p.org/&quot;&gt;UMP&lt;/a&gt; :&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Ce site s'appuie sur le CMS open source EZ Publish !&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ca fait plaisir qu'&lt;a hreflang=&quot;fr&quot; href=&quot;http://www.assemblee-nationale.fr/presse/divisionpresse/m01.asp&quot;&gt;après les députés&lt;/a&gt;, &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.u-m-p.org/&quot;&gt;la première formation politique de France&lt;/a&gt; s'appuie elle aussi sur le libre. Utilisant &lt;a hreflang=&quot;en&quot; href=&quot;http://www.llaumgui.com/post/ez.no&quot;&gt;eZ publish&lt;/a&gt; dans &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.kaliop.com&quot;&gt;ma vie professionnelle&lt;/a&gt;, je trouve que cette solution est un très bon choix. En effet, d'autres sites institutionnels tels que le &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.wwf.fr&quot;&gt;WWF&lt;/a&gt; lui ont déjà fait confiance.&lt;/p&gt;    &lt;h2&gt;En mode l'oeil du professionnel qui aime bien critiquer &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt; :&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Le index.php pollue, et il est facile de le rewriter, surtout que le site de l'UMP tourne sur du &lt;a hreflang=&quot;en&quot; href=&quot;http://www.apache.org&quot;&gt;Apache&lt;/a&gt; Linux powered (sûrement de la &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.debian.org&quot;&gt;Debian&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Le nom du &lt;a hreflang=&quot;en&quot; href=&quot;http://ezpedia.org/wiki/en/ez/siteaccess&quot;&gt;siteaccess&lt;/a&gt; (ump), lui aussi pollue. Il serait bien de passer en mode &lt;a hreflang=&quot;en&quot; href=&quot;http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccesssettings/matchorder&quot;&gt;host&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Mettre le copyright, c'est bien, le mettre en texte avec un lien en dur c'est mieux. Ecrire du texte en image est toujours quelque chose qui m'horrifie sur un site ! Les déficients visuels n'ont pas le droit de savoir que le site de l'UMP est sous eZ publish ?&lt;/li&gt;
&lt;li&gt;De même pour les images du type « Adhérer maintenant » qui pourraient avoir des attributs alt non vide. Bref des efforts peuvent être fait pour le référencement et l'accessibilité...&lt;/li&gt;
&lt;li&gt;Référencement toujours : www.u-m-p.org et u-m-p.org ça fait 2 adresses différentes pour 1 seul et même site. Faut en choisir 1 et rediriger l'autre dessus.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mine de rien, je me rends compte que tel &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.loiclemeur.com/france/2006/09/je_voterai_pour.html&quot;&gt;Loic Le Meur&lt;/a&gt;, ce billet m'avance de plus en plus vers le coming-out...&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Le-site-de-lUMP-sous-eZ-publish#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Le-site-de-lUMP-sous-eZ-publish#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/119</wfw:commentRss>
      </item>
    
  <item>
    <title>Protéger les accès SSH avec fail2ban</title>
    <link>http://www.llaumgui.com/post/Proteger-les-acces-SSH-avec-fail2ban</link>
    <guid isPermaLink="false">urn:md5:9fa4010e8f7693e36750c46a939c56e1</guid>
    <pubDate>Mon, 13 Nov 2006 19:45:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>apache</category><category>Borsalino</category><category>fail2ban</category><category>Fedora</category><category>serveur</category><category>SSH</category><category>sécurité</category><category>yum</category>    
    <description>&lt;p&gt;Après &lt;a href=&quot;http://www.llaumgui.com/post/Premiere-attaque-sur-Borsalino&quot; hreflang=&quot;fr&quot;&gt;l'attaque de ce week-end&lt;/a&gt; et après une lecture des logs d'accès ssh, je me suis décidé à mettre en place une gestion automatique des bannissements d'IPs.&lt;/p&gt;


&lt;p&gt;L'idée est simple : bannir les IPs qui tentent de passer le compte root en &amp;quot;&lt;a href=&quot;http://fr.wikipedia.org/wiki/Attaque_par_force_brute&quot; hreflang=&quot;fr&quot;&gt;Brut de force&lt;/a&gt;&amp;quot;.&lt;br /&gt;
Il est évident que l'accès root n'est pas autorisé en ssh (&lt;em&gt;PermitRootLogin no&lt;/em&gt;) tout comme les mots de passe (&lt;em&gt;PasswordAuthentication no&lt;/em&gt;), et que de telles attaques ne peuvent pas aboutir, mais c'est pour le principe ;-).&lt;/p&gt;    &lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; /var/log/secure&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt; | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;grep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Failed password for root&amp;quot;&lt;/span&gt; --count&lt;br /&gt;
&lt;span style=&quot;color: #000000;&quot;&gt;1812&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Sur les conseils de &lt;a href=&quot;http://blog.titax.fr/&quot; hreflang=&quot;fr&quot;&gt;Titax&lt;/a&gt;, je me suis penché sur &lt;a href=&quot;http://fail2ban.sourceforge.net&quot; hreflang=&quot;fr&quot;&gt;fail2ban&lt;/a&gt;, mais à la différence de &lt;a href=&quot;http://blog.titax.fr/post/fedora-core-4-et-fail2ban.html&quot; hreflang=&quot;fr&quot;&gt;la méthode proposée par Thierry&lt;/a&gt;, j'ai préféré utiliser le dépôts &lt;a href=&quot;http://doc.fedora-fr.org/D%C3%A9p%C3%B4t_dries&quot; hreflang=&quot;fr&quot;&gt;dries&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Si vous ne l'avais pas installé, vous en trouverez la config &lt;a href=&quot;http://www.fedoratracker.org/tracker.py?mode=listRepoConfig&amp;amp;repo_id=9&amp;amp;repo_version=5&quot; hreflang=&quot;fr&quot;&gt;ici&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Pour installer fail2ban :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; yum --&lt;span style=&quot;color: #007800;&quot;&gt;enablerepo=&lt;/span&gt;dries &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; fail2ban&lt;/code&gt;


&lt;p&gt;Une fois le service installé, il faut le configurer, ça ce passe dans /etc/fail2ban.conf, le fichier et très bien documenté vous pourrez y régler le nombre de tentative, la durée du bannissement, les services concernés (ssh mais possibilité de le mettre en place pour apache), et l'envoi de mail lors d'un bannissement.&lt;/p&gt;


&lt;p&gt;Ensuite, pour activer le service :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; /sbin/chkconfig --add fail2ban&lt;br /&gt;
root@borsalino ~&amp;gt; /sbin/service fail2ban start&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Proteger-les-acces-SSH-avec-fail2ban#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Proteger-les-acces-SSH-avec-fail2ban#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/113</wfw:commentRss>
      </item>
    
  <item>
    <title>Première attaque sur Borsalino</title>
    <link>http://www.llaumgui.com/post/Premiere-attaque-sur-Borsalino</link>
    <guid isPermaLink="false">urn:md5:f8ad7fbdb4daceb5367cdad632735478</guid>
    <pubDate>Sun, 12 Nov 2006 02:13:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>fedora-fr</category>
        <category>apache</category><category>Borsalino</category><category>serveur</category><category>sécurité</category>    
    <description>&lt;p&gt;Ce soirs &lt;a href=&quot;http://doc.fedora-fr.org/Le_site_fedora-fr#Borsalino.2C_le_serveur&quot; hreflang=&quot;fr&quot;&gt;Borsalino&lt;/a&gt;, le serveur de &lt;a href=&quot;http://www.fedora-fr.org&quot; hreflang=&quot;fr&quot;&gt;fedora-fr&lt;/a&gt;, a fait une montée en charge impressionnante (85) due aux services httpd et mysqld. Une charge m'obligeant à couper le serveur web pendant 10 minutes le temps d'analyser la situation.&lt;/p&gt;


&lt;p&gt;Une fois les logs d'erreur (&lt;em&gt;errors.log&lt;/em&gt;) contrôlés, j'ai du me rendre à l'évidence : je code rudement bien et il n'y a rien de ce côté là (Qui a dit que je me jeté des fleurs ;-)).&lt;/p&gt;    &lt;p&gt;Mes soupçons ce sont alors portés sur les logs d'accès (&lt;em&gt;acces.log&lt;/em&gt;) :&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;xxx.xxx.xxx.xxx - - &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;11&lt;/span&gt;/Nov/&lt;span style=&quot;color: #000000;&quot;&gt;2006&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;08&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;44&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;+0100&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;GET /index.php?title=Special:Recentchanges&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=atom&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=atom&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bfeed=atom&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bfeed=rss&amp;amp;amp;amp%3Bamp%3Bamp%3Bfeed=atom&amp;amp;amp;amp%3Bamp%3Bfeed=atom&amp;amp;amp;amp%3Bfeed=rss&amp;amp;amp;feed=rss HTTP/1.1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;200&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;60626&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Mozilla/5.0 (compatible; Yoono; http://www.yoono.com/)&amp;quot;&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Après investigation, il apparaîtrait que ce soit une attaque exploitant une faille, corrigée sur notre version, de &lt;a href=&quot;http://www.mediawiki.org/&quot; hreflang=&quot;en&quot;&gt;Wikimedia&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;D'après le &lt;a href=&quot;http://pwet.fr/man/linux/commandes/whois&quot; hreflang=&quot;fr&quot;&gt;whois&lt;/a&gt;, les IPs viendraient d'une société spécialisée dans la sécurité informatique (un comble !) et d'une résidence universitaire française... On peut supposer qu'on est en présence, soit d'étudiants s'amusant un samedi soir, soit de machines sous Windows transformées en zombies et attaquant à tout-va !&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; access.log |grep &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;:Recentchanges&amp;amp;amp;amp%3Bamp%3Bamp%3Bamp%3Bamp&amp;quot;&lt;/span&gt; --count&lt;br /&gt;
&lt;span style=&quot;color: #000000;&quot;&gt;6498&lt;/span&gt;&lt;/code&gt;

&lt;p&gt;Sachant que je grep un log qui est en rotation journalière... Ca fait quand même beaucoup !&lt;/p&gt;


&lt;p&gt;La sanction :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;iptables -I INPUT -s xxx.xxx.xxx.xxx -j DROP&lt;/code&gt;

&lt;p&gt;Et ce, afin de bloquer l'accès à la machine à cette IP et aux autres...&lt;/p&gt;


&lt;p&gt;&lt;em&gt;Merci à &lt;a href=&quot;http://speed47.free.fr/linux&quot; hreflang=&quot;fr&quot;&gt;SpeedFire&lt;/a&gt; du chan &lt;a href=&quot;http://www.fedora-fr.org/irc&quot; hreflang=&quot;fr&quot;&gt;#fedora-fr&lt;/a&gt; pour son cour sur &lt;a href=&quot;http://pwet.fr/man/linux/administration_systeme/iptables&quot; hreflang=&quot;fr&quot;&gt;iptables&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Premiere-attaque-sur-Borsalino#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Premiere-attaque-sur-Borsalino#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/111</wfw:commentRss>
      </item>
    
  <item>
    <title>DotClear 2.0 et les redirections d'url</title>
    <link>http://www.llaumgui.com/post/DotClear-20-et-les-redirections-durl</link>
    <guid isPermaLink="false">urn:md5:26e897d1eb3c8ecbe2888e69f3f49402</guid>
    <pubDate>Mon, 21 Aug 2006 16:35:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>apache</category><category>Dotclear</category><category>htaccess</category><category>llaumgui.com</category><category>serveur</category>    
    <description>&lt;p&gt;La forme des urls sous &lt;a href=&quot;http://www.dotclear.net&quot; hreflang=&quot;fr&quot; title=&quot;DotClear&quot;&gt;DotClear&lt;/a&gt; 1 et sous DotClear 2 est légèrement différente. Le &lt;a href=&quot;http://www.dotclear.net/forum&quot; hreflang=&quot;fr&quot; title=&quot;Forum DotClear&quot;&gt;forum officiel&lt;/a&gt; propose bien &lt;a href=&quot;http://www.dotclear.net/forum/viewtopic.php?id=19425&quot; hreflang=&quot;fr&quot; title=&quot;Forum DotClear&quot;&gt;une solution&lt;/a&gt;, malheureusement ayant modifié mes adresses à la fois sous DotClear 1 et sous DotClear 2.0, je ne peux appliquer cette astuce.
J'ai donc du me faire un petit fichier .htaccess perso.&lt;/p&gt;    &lt;h2&gt;Petit récapitulatif des différences entre les urls de DotClear 1 et celle de DotClear 2 :&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;DotClear 1 standard :&lt;/strong&gt; index.php/annee/mois/jour/id-titre_du_billet&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DotClear 1 LLaumgui :&lt;/strong&gt;&amp;lt;/strong&amp;gt; index.php/titre_du_billet&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DotClear 2 standard :&lt;/strong&gt; &amp;lt;/strong&amp;gt; index.php/post/annee/mois/jour/titre_du_billet&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DotClear 2 LLaumgui :&lt;/strong&gt;&amp;lt;/strong&amp;gt; /post/titre_du_billet&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;But de l'opération :&lt;/h2&gt;

&lt;p&gt;Le but est de rediriger les urls de type &lt;em&gt;index.php/titre_du_billet&lt;/em&gt; vers &lt;em&gt;post/titre_du_billet&lt;/em&gt;.
Attention cependant aux pages spéciales de DotClear telles que les archives ou les catégories de billets.&lt;/p&gt;



&lt;h2&gt;L'.htaccess expliqué :&lt;/h2&gt;

&lt;code class=&quot;apache&quot;&gt;&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteEngine&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;On&lt;/span&gt;&lt;/code&gt;

&lt;p&gt;Activation de la réécriture des urls.&lt;/p&gt;

&lt;code class=&quot;apache&quot;&gt;&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;# Redirection sur le www :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^www.llaumgui.com$&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteRule&lt;/span&gt; ^&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;nbsp; http://www.llaumgui.com/$&lt;span style=&quot;color: #ff0000;&quot;&gt;1&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;QSA,L,R=&lt;span style=&quot;color: #ff0000;&quot;&gt;301&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/code&gt;

&lt;p&gt;On redirige les urls &lt;em&gt;llaumgui.com&lt;/em&gt; vers &lt;em&gt;www.llaumgui&lt;/em&gt;. On ne référence ainsi qu'un seul nom de domaine.&lt;/p&gt;

&lt;code class=&quot;apache&quot;&gt;&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;####&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;# Vielles URL DC1 :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;# Vieux RSS :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;Redirect&lt;/span&gt; permanent /rss.php http://www.llaumgui.com/feed/rss2&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;Redirect&lt;/span&gt; permanent /atom.php http://www.llaumgui.com/feed/atom&lt;/code&gt;

&lt;p&gt;Redirection des anciennes urls des feeds.&lt;/p&gt;

&lt;code class=&quot;apache&quot;&gt;&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;# Vielle TOC :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RedirectMatch&lt;/span&gt; permanent /index.php/toc&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;$ http://www.llaumgui.com/archive&lt;/code&gt;

&lt;p&gt;On redirige l'ancien plugin de &amp;lt;em&amp;gt;Table des matières&amp;lt;/em&amp;gt; vers les archives de DotClear 2.0&lt;/p&gt;

&lt;code class=&quot;apache&quot;&gt;&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;# Vieux billets :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php\/?$&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/archive&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/category&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/feed&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/page&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/post&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/tag&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_URI&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !^/index\.php/tags&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteRule&lt;/span&gt; index.php/&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; http://www.llaumgui.com/post/$&lt;span style=&quot;color: #ff0000;&quot;&gt;1&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;QSA,L,R=&lt;span style=&quot;color: #ff0000;&quot;&gt;301&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/code&gt;

&lt;p&gt;On redirige les urls de type &amp;lt;em&amp;gt;index.php/titre_du_billet&amp;lt;/em&amp;gt; en tenant compte des pages spéciales de DotClear :archives, catégories de billets, etc...&lt;/p&gt;

&lt;code class=&quot;apache&quot;&gt;&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;# Disparition du index.php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#Exécution des fichiers en PHP5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;AddType&lt;/span&gt; x-mapp-php5 .php&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#Indication du répertoire racine pour la réécriture&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteBase&lt;/span&gt; /&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#Pas de réécriture si le fichier (-f, file) ou le dossier (-d, directory) existe&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_FILENAME&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !-f &lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteCond&lt;/span&gt; %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;REQUEST_FILENAME&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !-d&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#Passage de la page demandée entière sur le index.php/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteRule&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; index.php/$&lt;span style=&quot;color: #ff0000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#Redirige index.php vers index.php/ pour éviter les 404 de DC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;RewriteRule&lt;/span&gt; ^index.php$ &amp;nbsp;index.php/&lt;br /&gt;
&lt;span style=&quot;color: #adadad; font-style: italic;&quot;&gt;#Redirige vers index.php/ si on demande pas de page spécifique&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00007f;&quot;&gt;DirectoryIndex&lt;/span&gt; index.php&lt;/code&gt;

&lt;p&gt;On passe d'urls standards de type &lt;em&gt;index.php/post/titre_du_billet&lt;/em&gt; vers un format sans index.php : &lt;em&gt;/post/nom_du_billet&lt;/em&gt;.&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/config/llaumguidotcom_.htaccess"
      length="1175" type="text/plain" />
    
    
          <comments>http://www.llaumgui.com/post/DotClear-20-et-les-redirections-durl#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/DotClear-20-et-les-redirections-durl#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/83</wfw:commentRss>
      </item>
    
</channel>
</rss>