Sabnzbd and Apache2 not playing nice

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
celborn
Newbie
Newbie
Posts: 2
Joined: July 18th, 2018, 10:25 am

Sabnzbd and Apache2 not playing nice

Post by celborn »

Hey all,

Ive searched through several posts but haven't really found what im looking for and hopefully someone could help me out.

Background:
Ubuntu 18.04 server with the following applications
Sabnzbd
Sickrage
Transmission
Webmin
Apache2
Certbot
installed and running

Using Apache2 virtual hosts to create application specific subdomains. i.e. transmission.xxxx. c o m, sickrage.xxxx. c o m, sabzndb.xxxx. c o m

SSL certs for each subdomain are installed and valid via certbot with http to https redirect

All applications are living and working happily in the environment except for sabnzbd (Service unavailable). And now i cant event sabnzbd to work on the old address to work xxxx. c o m:8080 (ssl error)

Below is my current config for the Apache2 virtual host

sabnzb.xxxx. c o m-le-ssl.conf

Code: Select all

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin noreply@xxxx. c o m
ServerName sabnzbd.xxxx. c o m
ProxyPass / h t t p ://localhost:8080/sabnzbd
ProxyPassReverse / h t t p ://localhost:8080/sabnzbd
ProxyPreserveHost On

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/sabnzbd.xxxx. c o m/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sabnzbd.xxxx. c o m/privkey.pem
LogLevel emerg
</VirtualHost>
</IfModule>
sabnzbd.xxxx. c o m.conf

Code: Select all

<VirtualHost *:80>
ServerAdmin noreply@xxxx. c o m
ServerName sabnzbd.xxxx. c o m
ProxyPass / h t t p://localhost:8080/sabnzbd
ProxyPassReverse / h t t p://localhost:8080/sabnzbd
RewriteEngine on
RewriteCond %{SERVER_NAME} =xxxx. c o m [OR]
RewriteCond %{SERVER_NAME} =sabnzbd.xxxx. c o m
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Anyone have any input or advice on how to get, ideally, sabznbd behind the ssl wall while not breaking the other services?
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd and Apache2 not playing nice

Post by sander »

All applications are living and working happily in the environment except for sabnzbd (Service unavailable). And now i cant event sabnzbd to work on the old address to work xxxx. c o m:8080 (ssl error)
Is SABnzbd running at all?
If so: on which port(s), with which protocol?

Because: 8080 is (by default) the HTTP port, no SSL. If you try to use HTTPS to access a plain HTTP port, you will indeed get an SSL error. Or, in Chrome speak: ERR_SSL_PROTOCOL_ERROR
Post Reply