<?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>Zarathustra Shall Speak &#187; lighttpd</title>
	<atom:link href="http://zarathustrashallspeak.com/tag/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://zarathustrashallspeak.com</link>
	<description>And you yourself are also this Will to Power.</description>
	<lastBuildDate>Tue, 17 Jan 2012 20:44:36 +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>lighttpd/htaccess Protection</title>
		<link>http://zarathustrashallspeak.com/2009/06/06/lighttpdhtaccess-protection/</link>
		<comments>http://zarathustrashallspeak.com/2009/06/06/lighttpdhtaccess-protection/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 01:34:36 +0000</pubDate>
		<dc:creator>Akairenn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://zarathustrashallspeak.com/?p=59</guid>
		<description><![CDATA[I wish lighttpd was as well supported as Apache.]]></description>
			<content:encoded><![CDATA[<p>First, make sure mod_auth is enabled in lighttpd.conf, in the big giant list o&#8217; modules near the top of the config.</p>
<p>Then:</p>
<pre class="code">
auth.backend = "plain"
auth.backend.plain.userfile = "/path/to/your/htpasswd_file"
auth.require = ( "/" =>
	(
		"method" => "basic",
		"realm" => "Password protected area",
		"require" => "valid-user"
	)
)
</pre>
<p>The htpasswd_file should be located outside of a docroot (you don&#8217;t really want people downloading it, now, do you?) and is, for all intents and purposes, a conventional htpasswd file.  That is, you can use the htpasswd utility to generate it, or if you&#8217;re lazy, one of the many web-based utilities out there.  (Google for .htpasswd generator)</p>
<p>The auth.require line &#8211; or rather, the first part, is what&#8217;s being protected.  / should cover the whole docroot; if you wanted to protect a subdirectory, you&#8217;d just use &#8220;/mysubdirectory/&#8221; for example.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarathustrashallspeak.com/2009/06/06/lighttpdhtaccess-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

