<?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>rullzer &#187; apache</title>
	<atom:link href="http://rullzer.com/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://rullzer.com/blog</link>
	<description>an experience beyond</description>
	<lastBuildDate>Sat, 19 Mar 2011 07:59:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Sabnzbd behind apache</title>
		<link>http://rullzer.com/blog/2009/09/04/sabnzbd-behind-apache/</link>
		<comments>http://rullzer.com/blog/2009/09/04/sabnzbd-behind-apache/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 12:14:44 +0000</pubDate>
		<dc:creator><span property="dc:creator" resource="http://rullzer.com/blog/2009/09/04/sabnzbd-behind-apache/">rullzer</span></dc:creator>
				<category><![CDATA[Annoying things]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Programming things]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[SABnzbd]]></category>
		<category><![CDATA[SABnzbdplus]]></category>

		<guid isPermaLink="false">http://rullzer.com/blog/?p=172</guid>
		<description><![CDATA[So after upgrading my sabnzbd installation to version 0.4.11, which I by the way the way should create a better ebuild for and do some dependency cleaning but that is a different story. Like I was saying after upgrading to version 0.4.11 I decided I wanted to close port 8080 (the one sabnzbd is using) [...]]]></description>
			<content:encoded><![CDATA[<p>So after upgrading my <a href="http://www.sabnzbd.org/">sabnzbd</a> installation to version 0.4.11, which I by the way the way should create a better ebuild for and do some dependency cleaning but that is a different story.</p>
<p>Like I was saying after upgrading to version 0.4.11 I decided I wanted to close port 8080 (the one sabnzbd is using) to the outside word. Now I know apache has some nice proxy functions so it should be easy.</p>
<p>Make sure apache is compiled with the following modules: <strong>apache2_modules_proxy apache2_modules_proxy_http apache2_modules_proxy_balancer</strong></p>
<p>That was the hard part. Now just add a vhost:<br />
<code><br />
<VirtualHost *:80><br />
  ServerName yourserver.com<br />
  <Location /><br />
    order deny,allow<br />
    deny from all<br />
    allow from all<br />
    ProxyPass http://localhost:8080/sabnzbd/<br />
    ProxyPassReverse http://localhost:8080/sabnzbd/a<br />
  </Location><br />
  ErrorLog /var/log/apache2/error.sabnzb.log<br />
  LogLevel warn<br />
  CustomLog /var/log/apache2/access.sabnzb.log combined<br />
</VirtualHost><br />
</code></p>
<p>This assumes that you have sabnzbd listening on <strong>localhost:8080</strong>. Now you probably do not want the whole world watching your downloads (or deleting them or whatever). So we just add some basic apache authentication, use htpasswd2 to create a file with authorized users and add the following lines into the location block.</p>
<p><code><br />
AuthName "Login Required"<br />
AuthType Basic<br />
AuthUserFile <<PASSWORD FILE>><br />
require valid-user<br />
</code></p>
<p>That is all.<br />
Happy downloading!</p>
]]></content:encoded>
			<wfw:commentRss>http://rullzer.com/blog/2009/09/04/sabnzbd-behind-apache/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

