Sabnzbd koppelen aan Apache

November 26th, 2009 Leave a comment Go to comments

Op mijn XBMC heb ik zowel Sabnzbd als Apache staan. Mijn thuis router heb ik zo geconfigureerd dat apache beschikbaar is vanaf het Internet. Om sabnzbd ook beschikbaar te maken heb ik een koppeling tussen deze twee gemaakt. De tip is om een bestand aan te maken op de onderstaande lokatie:

/etc/apache2/conf.d/sabnzb.conf

De inhoud van het bestand moet als volgt zijn:

<Location /sabnzbd>

# Put this after the other LoadModule directives
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so

order deny,allow
deny from all
allow from all
ProxyPass http://localhost:9090/sabnzbd
ProxyPassReverse http://localhost:9090/sabnzbd
AuthUserFile /var/www/sabnzbd/.htpasswd
AuthName "sabnzbd authentication required"
AuthType Basic
Require valid-user

</Location>

De poort waarop sabnzbd draait moet overeenkomen met de poort in dit bestand. Bij mij draait sabnzbd op poort 9090.  Om sabnzbd verder te beveiligen heb ik een htpasswd file aangemaakt. In latere versies van sabnzbd is het trouwens ook mogelijk om sabnzbd te beveiligen. Nadat apache een herstart heeft gekregen is het mogelijk om sabnzbd te bereiken op http://localhost/sabnzbd waarbij localhost de hostname of het ipadres is van de xbmc server.

  1. No comments yet.
  1. No trackbacks yet.