Reverse Proxy for SabNZDB and NZBDrone with Apache

Hi Guys,

I haven’t blogged for a while. It’s been a bit hectic at this end. I’m no longer working as a sysadmin. I’m now working as a project manager for UC and SCCM solutions.

Anyway, just moved house and am in the process of configuring SabNZDB and NZBDrone. Rather that having to remember the ports for all of these different services e.g. http://domainname.com:8989 I’d like to just remember a short name for each service e.g http://domainname.com/sab or http://domainname.com/drone

Right, lets get started:

1. Setup SAB and Drone as you usually would but rather than opening up ports 8080 and 8989 (Default SAB and Drone ports ) only open up port 80 to the server.

2. Download and install XAMPP. I’m running this on a little Windows 7 box. Here is the link: https://www.apachefriends.org/download_success.html

3. Once its installed and is up and running stop the Apache service from the application tool.

4. Once you’ve done this go to the config location for Apache (Default is: C:\xampp\apache\conf) now find the  httpd.conf file and open it with notepad.

5. Ive added these two sections at the bottom of the file:

<Location /sab>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
</Location>

<Location /drone>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8989/drone
ProxyPassReverse http://localhost:8989/drone
</Location>

6. Once you’ve done this and save the files you should be able to get to Sab and Drone from outside your firewall.

E.g http://mydomain.com/sab and http://mydomain.com/drone.

One additional note with NZBDrone

You may see just NZBDrone Ver. If you do, do this:

In NZBDrone:

  1. Go to Settings -> General
  2. Set URL Base to desired path
  3. Save settings
  4. Restart (Restart as administrator on Windows)
  5. Donate ❤

Let me know if you need further details

Cheers!

Advertisements