<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/static/rss.xsl"?>
<!-- name="generator" content="blosxom/2.1.2+dev" -->
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:cc="http://web.resource.org/cc/"
     xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/" >
  <channel>
    <!-- RSS required -->
    <title>Blogging is futile   </title>
    <!-- <link>http://noone.org/blog</link> -->
    <description>Yet another Blosxom weblog from someone who promised himself to never start blogging - since blogging is futile.</description>

    <!-- RSS optional -->
    <pubDate>Mon, 21 May 2012 13:57:36 +0200</pubDate>
    <lastBuildDate>Mon, 21 May 2012 13:57:36 +0200</lastBuildDate>
    <copyright>&amp;copy; 2005-2008 by Axel Beckert. Content licensed under the Creative Commons NC SA 2.0 DE License. Some rights reserved.</copyright>
    <language>en</language>
    <managingEditor>abe+blog@deuxchevaux.org (Axel Beckert)</managingEditor>
    <webMaster>abe+blog@deuxchevaux.org (Axel Beckert)</webMaster>
    <generator>blosxom/2.1.2+dev</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>42</ttl>
    <image>
        <url>http://noone.org/static/XTaran1.3t.png</url>
        <title>Hackergotchi: Axel "XTaran" Beckert</title>
        <link>http://noone.org/blog</link>
        <width>102</width>
        <height>104</height>
    </image>

    <!-- Dublin Core -->
<!--
    <dc:publisher>Axel Beckert (abe+blog@deuxchevaux.org)</dc:publisher>
    <dc:rights>&copy; 2005-2008 by Axel Beckert. Content licensed under the Creative Commons NC SA 2.0 DE License. Some rights reserved.</dc:rights>
    <dc:language>de</dc:language>
    <dc:language>en</dc:language>
    <dc:title>Blogging is futile   </dc:title>
    <dc:subject>Rants and brain dumps about Debian, the Web, old Hardware, old Citroëns and the daily life of an ETHZ system administrator</dc:subject>
    <dc:description>Yet another Blosxom weblog from someone who promised himself to never start blogging - since blogging is futile.</dc:description>
-->

    <!-- Others -->
    <admin:generatorAgent rdf:resource="http://blosxom.sourceforge.net/" />
    <admin:errorReportsTo rdf:resource="mailto:abe+blog@deuxchevaux.org" />
    <cc:license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/de/">http://creativecommons.org/licenses/by-nc-sa/2.0/de/</cc:license>

  <item>
    <title>Illegal attempt to re-initialise SSL for server (theoretically shouldn&apos;t happen!)</title>
    <slash:department>as-soon-as-you-do-it-right,-it-actually-works</slash:department>
    <slash:section>English &amp;raquo; Computer &amp;raquo; Web &amp;raquo; Apache</slash:section>
    <link>http://noone.org/blog/English/Computer/Web/Apache/Illegal%2520attempt%2520to%2520re-initialise%2520SSL.html</link>
    <guid isPermaLink="true">http://noone.org/blog/English/Computer/Web/Apache/Illegal%2520attempt%2520to%2520re-initialise%2520SSL.html</guid>
    <pubDate>Tue, 10 Jan 2012 02:52:07 +0100</pubDate>
    <author>abe+blog@deuxchevaux.org (Axel Beckert)</author>
    <description>
After dist-upgrading my main &lt;a href=&quot;http://www.hetzner.de/&quot; class=&quot;ext&quot;&gt;Hetzner&lt;/a&gt; server from &lt;a href=&quot;http://www.debian.org/releases/lenny/&quot; class=&quot;ext&quot;&gt;Lenny&lt;/a&gt; to &lt;a href=&quot;http://www.debian.org/releases/squeeze/&quot; class=&quot;ext&quot;&gt;Squeeze&lt;/a&gt;,
&lt;a href=&quot;http://httpd.apache.org/&quot; class=&quot;ext&quot;&gt;Apache&lt;/a&gt; failed to come up, barfing the following error message in the
alphabetically last defined and enabled virtual host&amp;#8217;s error log:

&lt;/p&gt;&lt;pre&gt;
[error] Illegal attempt to re-initialise SSL for server (theoretically shouldn&apos;t happen!)
&lt;/pre&gt;&lt;p&gt;

Well this is not theory but the real world and it did happen &amp;mdash;
and it took me a while to find out what was wrong with the
configuration despite it worked with Lenny&amp;#8217;s Apache version.

&lt;/p&gt;&lt;p&gt;

To avoid that others have to search as long as I had to, here&amp;#8217;s the
solution:

&lt;/p&gt;&lt;p&gt;

Look at all enabled sites, pick out those which have a VirtualHost on
port 443 defined and verify that all these VirtualHost containers do
have their own &amp;#8220;SSLEngine On&amp;#8221; statement. If at least one is missing,
you&amp;#8217;ll run into the above mentioned error message.

&lt;/p&gt;&lt;p&gt;

And it won&amp;#8217;t necessarily show up in the error log of those
VirtualHosts which are missing the statement but only in the last
VirtualHost (or the last VirtualHost on port 443).

&lt;/p&gt;&lt;p&gt;

To find the relevant site files, I used the following one-liner:

&lt;/p&gt;&lt;pre&gt;grep -lE &apos;VirtualHost.*443&apos; sites-enabled/*[^~] | \
  xargs grep -ci &quot;SSLEngine On&quot; | \
  grep :0&lt;/pre&gt;&lt;p&gt;

Should work for all sites which have defined just one VirtualHost on
port 443 per file.

&lt;/p&gt;&lt;p&gt;

I suspect that the raise of &lt;a class=&quot;wiki&quot;
href=&quot;https://en.wikipedia.org/wiki/Server_Name_Indication&quot; &gt;SNI&lt;/a&gt;
made Apache&amp;#8217;s SSL implementation more picky with regards to
VirtualHosts.

&lt;/p&gt;&lt;p&gt;

Oh, and kudos to &lt;a class=&quot;ext&quot;
href=&quot;http://www.debian-administration.org/articles/349#comment_101&quot;
&gt;this comment to an article on Debian-Administration.org&lt;/a&gt; because
it finally pointed me in the right direction. :-)</description>
    <comments>http://noone.org/blog/English/Computer/Web/Apache/Illegal%2520attempt%2520to%2520re-initialise%2520SSL.futile#comments</comments>
    <slash:comments>2</slash:comments>
    <dc:language>en</dc:language>
    <category domain="http://noone.org/blog/tags/Apache">Apache</category>
<category domain="http://noone.org/blog/tags/CLI">CLI</category>
<category domain="http://noone.org/blog/tags/commandline">commandline</category>
<category domain="http://noone.org/blog/tags/Debian">Debian</category>
<category domain="http://noone.org/blog/tags/error">error</category>
<category domain="http://noone.org/blog/tags/experience">experience</category>
<category domain="http://noone.org/blog/tags/grep">grep</category>
<category domain="http://noone.org/blog/tags/HTTPS">HTTPS</category>
<category domain="http://noone.org/blog/tags/KMMR">KMMR</category>
<category domain="http://noone.org/blog/tags/Lenny">Lenny</category>
<category domain="http://noone.org/blog/tags/Squeeze">Squeeze</category>
<category domain="http://noone.org/blog/tags/SSL">SSL</category>
<category domain="http://noone.org/blog/tags/xargs">xargs</category>

  </item>
    <link>http://noone.org/blog/English/Computer/Web/Apache</link>
  </channel>
</rss>

