<?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>blog.arithm &#187; Apache</title>
	<atom:link href="http://blog.arithm.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arithm.com</link>
	<description>Software.  Politics.  Tinfoil hat conjecture.</description>
	<lastBuildDate>Fri, 13 Jan 2012 19:00:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Command-line Apache Status</title>
		<link>http://blog.arithm.com/2011/08/30/command-line-apache-status/</link>
		<comments>http://blog.arithm.com/2011/08/30/command-line-apache-status/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 23:16:31 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[lynx wget]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1699</guid>
		<description><![CDATA[Here&#8217;s another thing I have to do once per year and can never remember how to do. If you have Apache extended status activated thusly: &#60;IfModule mod_status.c&#62; ExtendedStatus On &#60;Location /server-status&#62; SetHandler server-status Order deny,allow Deny from all Allow from localhost ip6-localhost 127.0.0.1 &#60;/Location&#62; &#60;/IfModule&#62; &#8230;then you can check in on what Apache is up [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another thing I have to do once per year and can never remember how to do.</p>
<p>If you have Apache extended status activated thusly:</p>
<p><code>&lt;IfModule mod_status.c&gt;<br />
  ExtendedStatus On<br />
  &lt;Location /server-status&gt;<br />
    SetHandler server-status<br />
    Order deny,allow<br />
    Deny from all<br />
    Allow from localhost ip6-localhost 127.0.0.1<br />
  &lt;/Location&gt;<br />
&lt;/IfModule&gt;</code></p>
<p>&#8230;then you can check in on what Apache is up to via Lynx from the command line:</p>
<p><code>$ wget -q -O - localhost/server-status | lynx -stdin</code></p>
<p>Quite handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2011/08/30/command-line-apache-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow localhost ipv6 routing on Windows</title>
		<link>http://blog.arithm.com/2011/06/06/slow-localhost-ipv6-routing-on-windows/</link>
		<comments>http://blog.arithm.com/2011/06/06/slow-localhost-ipv6-routing-on-windows/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 12:42:45 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1640</guid>
		<description><![CDATA[This comes to me word-of-mouth. It seems there’s a longstanding bug/feature in the firewall routemap that causes the ipv6 localhost link to fail, and then the v4 link is tried, and succeeds. Apache is bound to both, but Windows won’t route the v6 link correctly. There are a couple of solutions here, including turning off [...]]]></description>
			<content:encoded><![CDATA[<p>This comes to me word-of-mouth.</p>
<blockquote><p>It seems there’s a longstanding bug/feature in the firewall routemap that causes the ipv6 localhost link to fail, and then the v4 link is tried, and succeeds. Apache is bound to both, but Windows won’t route the v6 link correctly.</p></blockquote>
<p>There are a couple of solutions here, including turning off ipv6 in Windows.  It&#8217;s probably easiest just to explicitly define &#8220;localhost&#8221; in C:\Windows\System32\drivers\hosts.  Uncommment the 127.0.0.1 line:</p>
<p><code>127.0.0.1 localhost<br />
# ::1 localhost<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2011/06/06/slow-localhost-ipv6-routing-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internal error: pcfg_openfile() called with NULL filename</title>
		<link>http://blog.arithm.com/2010/02/26/internal-error-pcfg_openfile-called-with-null-filename/</link>
		<comments>http://blog.arithm.com/2010/02/26/internal-error-pcfg_openfile-called-with-null-filename/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 14:42:42 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1221</guid>
		<description><![CDATA[Yeah, so even if you turn off basic authentication and specify a different auth method, Apache (at least some versions of it) still looks around for an auth file and throws a &#8220;pcfg_openfile() called with NULL&#8221; error when it can&#8217;t find one.  To fix, set the user auth file to /dev/null: AuthBasicAurhorative off AuthUserFile /dev/null [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah, so even if you turn off basic authentication and specify a different auth method, Apache (at least some versions of it) still looks around for an auth file and throws a &#8220;pcfg_openfile() called with NULL&#8221; error when it can&#8217;t find one.  To fix, set the user auth file to /dev/null:<br />
<code><br />
AuthBasicAurhorative off<br />
AuthUserFile /dev/null<br />
</code></p>
<p>Or you can just ignore the errror I suppose.  It looks more serious than it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2010/02/26/internal-error-pcfg_openfile-called-with-null-filename/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Apache service reported the following error:&gt;&gt;&gt; Unable to open logs .</title>
		<link>http://blog.arithm.com/2009/10/14/the-apache-service-reported-the-following-error-unable-to-open-logs/</link>
		<comments>http://blog.arithm.com/2009/10/14/the-apache-service-reported-the-following-error-unable-to-open-logs/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 16:24:59 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=1063</guid>
		<description><![CDATA[I hear what you&#8217;re saying&#8230; &#8220;What the..? Nothing changed!&#8221; Ah, but are you running Skype? If so, turn it off and try again. Skype grabs port 80 unless that port is otherwise occupied. Launch Apache first, or choose an alternative HTTP port. Would be nice if the error message was something a little more clear. [...]]]></description>
			<content:encoded><![CDATA[<p>I hear what you&#8217;re saying&#8230;  &#8220;What the..?  Nothing changed!&#8221;</p>
<p>Ah, but are you running Skype?  If so, turn it off and try again.</p>
<p>Skype grabs port 80 unless that port is otherwise occupied.  Launch Apache first, or choose an alternative HTTP port.</p>
<p>Would be nice if the error message was something a little more clear.  How about &#8220;Cannot acquire port 80&#8243;?  But, nah.. that would ruin all the fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2009/10/14/the-apache-service-reported-the-following-error-unable-to-open-logs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>apache2: apr_sockaddr_info_get() failed for somehost</title>
		<link>http://blog.arithm.com/2008/08/07/apache2-apr_sockaddr_info_get-failed-for-somehost/</link>
		<comments>http://blog.arithm.com/2008/08/07/apache2-apr_sockaddr_info_get-failed-for-somehost/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:15:59 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Crash]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[hostname]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=361</guid>
		<description><![CDATA[Hypothetically speaking of course, let&#8217;s assume you forget to renew a domain name. And suddenly that domain&#8217;s email is not working. And then you notice the site is down. The next step is, logically speaking, to panic, followed by an attempt to figure out what the hell is going on. Which usually means restarting Apache. [...]]]></description>
			<content:encoded><![CDATA[<p>Hypothetically speaking of course, let&#8217;s assume you forget to renew a domain name.  And suddenly that domain&#8217;s email is not working.  And then you notice the site is down.  The next step is, logically speaking, to panic, followed by an attempt to figure out what the hell is going on.  Which usually means restarting Apache.  Which results in:</p>
<p><code>apache2: apr_sockaddr_info_get() failed for yourhost</code></p>
<p>Which is, wow, an exotic new error.  If you see this it means that, even though Apache says its restarting, really its probably not.  And now all your other sites are down.  And, so, more panic.  More panic for you.</p>
<p>Now that you&#8217;ve probably realized that the default domain name has expired, you will want to get Apache back up on a different, actually non-expired domain.  Like this:</p>
<p><code>$ hostname actual-non-expired-domain-name.com</code></p>
<p>Now restart.</p>
<p>Alternatively if your hostname is set to something like &#8220;www&#8221;, probably you can change the default site in vhosts so that Apache can connect the hostname to the tld.</p>
<p>This is all hypothetical of course.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/08/07/apache2-apr_sockaddr_info_get-failed-for-somehost/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Alternative authentication methods with Apache 2.2</title>
		<link>http://blog.arithm.com/2008/01/27/alternative-authentication-methods-with-apache-22/</link>
		<comments>http://blog.arithm.com/2008/01/27/alternative-authentication-methods-with-apache-22/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 05:20:20 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mod_auth_imap]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/2008/01/27/alternative-authentication-methods-with-apache-22/</guid>
		<description><![CDATA[Quick note on how to make alternative authentication modules work with Apache 2.2. mod_auth_imap kept complaining about a missing password file: (9)Bad file descriptor: Could not open password file: (null) Turns out with Apache 2.2 you have to explicitly turn off Basic authentication even when you are using an alternative module. So a proper Apache [...]]]></description>
			<content:encoded><![CDATA[<p>Quick note on how to make alternative authentication modules work with Apache 2.2.</p>
<p><code><a href="http://ben.brillat.net/projects/mod_auth_imap/">mod_auth_imap</a></code> kept complaining about a missing password file:</p>
<p><code>(9)Bad file descriptor: Could not open password file: (null)<br />
</code></p>
<p>Turns out with Apache 2.2 you have to explicitly turn off Basic authentication even when you are using an alternative module.  So a proper Apache 2.2 <code>mod_auth_imap</code> configuration would look something like this:<br />
<code><br />
Auth_IMAP_Enabled On<br />
</code><font color="#ff0000"><code><strong> AuthBasicAuthoritative Off</strong></code></font><br />
<code>AuthType Basic<br />
Require valid-user<br />
Auth_IMAP_Authoritative On<br />
Auth_IMAP_Server mail.server.com<br />
Auth_IMAP_Port 143<br />
Auth_IMAP_Log On<br />
</code></p>
<p>Turning off <code>AuthBasicAuthoritative</code> forces Apache to ignore the standard password file authentication.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/01/27/alternative-authentication-methods-with-apache-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

