Menu

#23 HTTPS redirects behind a reverse HTTPS terminating proxy

Unstable_(example)
open
nobody
None
1
2017-10-11
2015-01-13
No

When Subsonic uses HTTP behind a reverse proxy that terminates incoming HTTPS, redirects performed by Subsonic will redirect to HTTP and not HTTPS.

This patch makes Subsonic redirect to HTTPS.

See:

Example Apache HTTPD mod_proxy configuration:

ProxyPreserveHost On

<Location /subsonic>
  ProxyPass http://localhost:8081/subsonic retry=0
  ProxyPassReverse http://localhost:8081/subsonic
  Allow from all
</Location>

<LocationMatch "/subsonic(?!(/stream|coverArt.view))">
  SSLRequireSSL
  RequestHeader set X-Forwarded-Proto https
</LocationMatch>

The attached patch has been generated by svn diff.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2015-11-07

    Any progress on this?
    I am finding that I cannot use an SSL terminating proxy with subsonic because it ignores the standard header fields.

     
  • Anonymous

    Anonymous - 2016-02-15

    Please implement something like this. It is much easier to setup letsencrypt using a reverse proxy rather than making it work with jetty.

     
  • Anonymous

    Anonymous - 2016-04-19

    I'm having the same problem. Any news?

     
  • Anonymous

    Anonymous - 2016-04-19
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2016-12-09
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel