<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UnderworldLabs.org &#187; apache</title>
	<atom:link href="http://underworldlabs.org/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://underworldlabs.org</link>
	<description>My Dropbox</description>
	<lastBuildDate>Fri, 07 Oct 2011 13:46:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Apache 2.2.3-x with mod_jk</title>
		<link>http://underworldlabs.org/blog/apache-2-2-3-x-with-mod_jk/</link>
		<comments>http://underworldlabs.org/blog/apache-2-2-3-x-with-mod_jk/#comments</comments>
		<pubDate>Tue, 10 May 2011 00:03:37 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=145</guid>
		<description><![CDATA[Running CentOS 5 on one of my personal (playpen) servers, i recently performed a simple yum update which brought in the package httpd-2.2.3-45.el5.centos.1.i386 and its...]]></description>
			<content:encoded><![CDATA[<p>Running CentOS 5 on one of my personal (playpen) servers, i recently performed a simple yum update which brought in the package <code>httpd-2.2.3-45.el5.centos.1.i386</code> and its dependents in addition to some others including some python and selinux updates. So no biggie so far &#8211; but restarting apache brought me a world of pain as I spent the next 24 hours trying to diagnose why any http request to <em>any</em> domain on that server would never complete and [seemingly] never timeout.</p>
<p>Frankly, I don&#8217;t know for sure which particular package was the culprit. There was nothing logged that pointed to any issues &#8211; indeed any and all logs I went through indicated all was well. I also could not find a single thing online that resembled what I was experiencing. I have managed my own servers for about 10 years now. I&#8217;m far from a competent Linux admin but I usually know enough to get by or just enough to get out of trouble, so I became severely frustrated when a seemingly simple upgrade could result in all my sites being made unavailable.</p>
<p>I started by stripping back my Apache install to next to nothing &#8211; which brought back a single <em>static</em> site i set up as a test. Then line-by-line I reintroduced various modules, includes and various directive lines. At the very bottom I had my mod_jk include &#8211; which by the way serves over half of my sites. </p>
<p>As soon as I reintroduced mod_jk it dumped. After much fiddling, rebuilding mod_jk, installing from rpm, downgrading packages, tinkering with various mod_jk parameters, using <code>strace</code> on startup (great article on debugging with <code>strace</code> <a href="http://linuxgazette.net/132/vishnu.html">here</a>) I finally put it down to the inclusion of the following:</p>
<pre>
&lt;Location /*/META-INF/*&gt;
    Deny From All
&lt;/Location&gt;
&lt;Location /*/WEB-INF/*&gt;
    Deny From All
&lt;/Location&gt;
</pre>
<p>The above tells Apache as a global directive to disallow any access to the protected Java web application directories <code>WEB-INF</code> and <code>META-INF</code>. </p>
<p>The lines above have been a part of my apache/mod_jk config for as long as I remember. I haven&#8217;t yet had a good look as to why the above is no longer acceptable &#8211; I&#8217;m just relieved to have everything back up. I would have expected Apache to complain about configuration errors, issue the relevant message and fail to start just like it does for most other issues. Not so in this case and furthermore it silently takes down the whole server instance.</p>
<p>I didn&#8217;t find any references to this anywhere &#8211; perhaps this will help someone equally confused as I was <img src='http://underworldlabs.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/apache-2-2-3-x-with-mod_jk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webalizer Segmentation Faults</title>
		<link>http://underworldlabs.org/blog/webalizer-segmentation-faults/</link>
		<comments>http://underworldlabs.org/blog/webalizer-segmentation-faults/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 11:39:23 +0000</pubDate>
		<dc:creator>Takis Diakoumis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[webalizer]]></category>

		<guid isPermaLink="false">http://underworldlabs.org/?p=54</guid>
		<description><![CDATA[I had recently been getting some rather odd segmentation faults when running webalizer against some (not all) of my domains. Problem was that it wouldn&#8217;t...]]></description>
			<content:encoded><![CDATA[<p>I had recently been getting some rather odd segmentation faults when running <a href="http://www.webalizer.org/" target="_blank">webalizer</a> against some (not all) of my domains. Problem was that it wouldn&#8217;t always happen so i didn&#8217;t pay a great deal of attention to it. I later figured the up &#8211; then down &#8211; then up was related to my log rotation (yeah &#8211; duh!), so something in the logs was causing the process to fail.</p>
<p>After some serious digging (it drove me a little nuts) and a plethora of less than helpful tips and references I stumbled across this:  <a href="https://calomel.org/webalizer.html" target="_blank">Webalizer &#8211; Web Server Statistics &#8220;how to&#8221;</a>.</p>
<p>Apparently it has something to do with the way browsers accessing the site report their name and that some have multiple parens (&#8216;(&#8216; and &#8216;)&#8217;) in it. This had the affect of confusing the mangle agent that reports agent names accessing the site. The fix was specifying a MangleAgents value other than 1 (zero or 2 worked fine). I set it to 2 and all is well &#8211; I now have all my stats working again.</p>
]]></content:encoded>
			<wfw:commentRss>http://underworldlabs.org/blog/webalizer-segmentation-faults/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

