Run sabnzbd+ behind Apache on Synology


Since DSM 5 the paths are changed:

DSM 4:

  •  /usr/syno/etc/httpd-ssl-vhost.conf-user
  • /usr/syno/apache/conf/httpd.conf-user

DSM 5:

  • /etc/httpd/sites-enabled-user/httpd-ssl-vhost.conf-user
  • /etc/httpd/conf/httpd.conf-user

I’m an owner of a Synology DS211 and i have installed Sabnzbd+ on it, using this helpful package (add it to your favorites, it’s a really nice site with more packages to download).

My  Synology is running on the latest 3.2 firmware.

After installation Sabnzbd+ is running on the following address http://private-diskstation-ip:8080, and i wanted to make it accessible in a secure way from the internet.
I want to be able to access the sabnzbd+ instance only from https and with a user/password prompt.

This could be done by configuring Apache. In fact i want to run sabnzbd+ behind Apache on Synology.

After a evening of searching and probing i finally got it working as I wanted:

The first thing to do if you haven’t already did it is to enable access to the Synology from the Command Line (

Then from the prompt we edit the Apache configuration file with vi
(here are the basic commands:

For DSM 4:

vi /usr/syno/apache/conf/httpd.conf-user

For DSM 5:

vi /etc/httpd/conf/httpd.conf-user

We have to add the following directives at the end of the file:

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/

Then we modify the virtual host file (i want to access Sabnzbd+ from a sub domain url, like

For DSM 4:

vi /usr/syno/etc/httpd-ssl-vhost.conf-user

For DSM 5:

vi /etc/httpd/sites-enabled-user/httpd-ssl-vhost.conf-user

And I added the following text:

<Location "/">
ProxyPass http://localhost:8080/sabnzbd/
ProxyPassReverse http://localhost:8080/sabnzbd/
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /volume1/web/passwd/
Require valid-user
SSLEngine on

Note that i already have created an authentication file ( which i’m using also for other protected host, if you don’t know how to create it follow this

Then restart apache:

For DSM 4:

/usr/syno/etc/rc.d/ restart

For DSM 5:

httpd -k restart

Ready! Now i’m able to reach Sabnzbd+ running on my Synology from in https and with user/pass prompt.

After doing that, be careful about editing vhosts with the Synology Gui, because modifying them from there will overwrite our custom modifications we have done in the /usr/syno/etc/httpd-ssl-vhost.conf-user file.

Don’t forget to open port TCP 443 on your router/modem and forward it to the internal ip of your Synology, and to create the subdomain in your DNS server/hosting provider.

4 thoughts on “Run sabnzbd+ behind Apache on Synology

Add yours

  1. Thanks for this really useful post.

    Sorry to bring you back to it after so long but..

    Could this be used to access multiple services on a syno?

    I use dyndns so i can access my ip address at

    I then use the virtual server settings on my adsl router to forward various ports to the ports on my syno ( for sab, for couchpotato etc)

    would it be possible to use the reverse proxy so that i connect to

    and the requests are forwarded to the internal port.

    This would make it easier to access (names instead of port numbers) and i could also close off the multiple ports and just connect through a single port.


    1. yes, this can be done.
      You can use a subdomain like, or with a subdir like

      If you choose for a subdir then you have to change the vhost config like (you have to modify the location and remove the / at the end of the proxypass lines)

      For service like couchpotato you have also to modify some settings for the program, take a look at:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at

Up ↑

%d bloggers like this: