Reverse Proxy Subsonic with Apache

  • 3

Reverse Proxy Subsonic with Apache

Get Social!

SubsonicLogoSubsonic is a web-based media player for playing audio and video files through a web browser. You can reverse proxy Subsonic using Apache

See my blog post on using Apache as a reverse proxy for more detailed information on Apache configuration files.

The below configuration expects the backend Subsonic port to be non-ssl as the encryption will be offloaded to the Apache reverse proxy server. The reverse proxy URL will be encrypted and available on the default SSL port 443. This has the advantage of not using any CPU on the Subsonic server for encrypting traffic allowing it to concentrate on transcoding.

Add the below text to a new sites-available Apache configuration file.
vi /etc/apache2/sites-available/subsonic

 

Enable the new site in Apache and reload the configuration.
a2ensite subsonic
service apache2 reload


3 Comments

Jadon Smith

15-May-2015 at 12:44 am

http://www.jamescoyle.net/how-to/875-reverse-proxy-subsonic-with-apache

There is a small mistake in this post.

SSLEngine On
SSLCertificateFile /ssl-certs/cert.cer
SSLCertificateKeyFile /ssl-certs/key.key
SSLProxyEngine onServerAdmin email@jamescoyle.net
DocumentRoot /var/www

should be

SSLEngine On
SSLCertificateFile /ssl-certs/cert.cer
SSLCertificateKeyFile /ssl-certs/key.key
SSLProxyEngine on
ServerAdmin email@jamescoyle.net
DocumentRoot /var/www

    james.coyle

    27-May-2015 at 10:04 pm

    Corrected, thanks.

Mike

27-Dec-2015 at 10:45 pm

Nice article! Just out of curiosity, wouldn’t the CPU be used by Apache in order to encrypt the traffic? If so, wouldn’t the overall use of the CPU remain the same or is Apache more efficient than Subsonic? Interesting article and idea none the less. Thanks.

Leave a Reply