Subsonic Port Forwarding using Apache

Tutorials, tips and tricks.

Moderator: moderators

Subsonic Port Forwarding using Apache

Postby andrewdb » Thu Dec 26, 2013 5:03 pm

I don't know if this is obvious, a FAQ or answered here already (I did look, couldn't see).

I wanted to use https://<my domain>/music/ to use subsonic outside my LAN. There is already https://<my domain>/docs/ up and running.

Miserably failed over the course of 3 evenings, but won finally. This is how. This was on Ubuntu 12.04, so ymmv.

1 Subsonic
in /etc/default/subsonic added the bold item

SUBSONIC_ARGS="--max-memory=150 --context-path=/music"

(restart subsonic server, test, my internal ip was and subsonic was on 4040, yours will be different - should give the login screen )

2 Apache
in /etc/apache2/sites-available default-ssl
Assuming you have ssl set up and mod_proxy enabled (look in the docco - mod_proxy: ssl certs: for full info.

Code: Select all
#added to make subsonic work over 443

    ProxyRequests Off

    #RequestHeader unset Accept-Encoding

    #Order allow,deny
    #Allow from all

    ProxyPass /music/
    ProxyPassReverse /music/

(restart apache, get outside your lan, try https:<your domain>/music/)

I am sure others out there can point out where this is non-optimal, but if you do not want to expose 4040 at home / want to get through other peoples firewalls / dont want to be overheard (except by the nsa), this may be a start point.
Posts: 1
Joined: Thu Dec 26, 2013 4:37 pm

Re: Subsonic Port Forwarding using Apache

Postby alphawave7 » Thu Dec 26, 2013 5:40 pm

Nice write-up! Moved to Tutorials. :)
Posts: 1035
Joined: Thu Feb 11, 2010 9:54 am

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest