Page 1 of 1

Subsonic and Apache reverse Proxy problem

PostPosted: Fri Oct 01, 2010 9:39 am
by manovel
Hi,
I configured my apache server to reverse proxy subsonic as follows:

Apache config:
ProxyPass /subsonic http://localhost:4040/subsonic
ProxyPassReverse /subsonic http://localhost:4040/subsonic

Subsonic config:
CONTEXT_PATH=/subsonic

It is basically working, but I am unable to logout.
IF i press logout, the login form shows, giving in another username and password and you are back logged in with the previous user.

Anyone knows the reason?

PostPosted: Sun Nov 14, 2010 6:12 am
by nipar
You did'nt say if you installed and activated mod_proxy.

Perhaps this might help you:

http://forum.subsonic.org/forum/viewtopic.php?t=4688&highlight=

PostPosted: Sun Nov 14, 2010 12:59 pm
by Exrace
Saved password maybe? :oops:

PostPosted: Mon Nov 15, 2010 7:36 am
by nipar
ah, you mean the "Remember me" option :) that would do it

PostPosted: Fri Dec 17, 2010 8:26 pm
by manovel
Mod_proxy is active, I'm using that for other things as well, without problems.

remember password was never cheeked!

Other suggestions?

Thank you

PostPosted: Sat Jul 30, 2011 7:01 pm
by jungsterber
in the above config its something wrongI think.
I think manovel means something like this:

ProxyPass /subsonic http://localhost:4040

because just apache is aware of the folder "/subsonic"

Whatever at last I will leave you a running config:


What does this config do?
Subsonic iss listening on port 8443 (SSL) but I need a connection via Port 443 also but apache is still listening there, so here the mod_proxy magic:


Code: Select all

<VirtualHost *:443>
  ServerAdmin webmaster@yourdomain.de

  ProxyVia full
  ProxyPreserveHost on

  <proxy>
    Order deny,allow
    Allow from all
  </proxy>

    ProxyPass / https://localhost:8443/

    RequestHeader set ClientProtocol https
    AllowCONNECT 443
    SSLProxyEngine on
    SSLEngine on

  ServerName music.yourdomain.de

  SSLCertificateFile /etc/ssl/certs/all.yourdomain.de.crt
  SSLCertificateKeyFile /etc/ssl/private/all.yourdomain.de.key

  ErrorLog /var/log/apache2/music.yourdomain.de-error.log
  CustomLog /var/log/apache2/music.yourdomain.de-access.log combined

</VirtualHost>



Ubuntu/Debian Users also be aware about the file

/etc/apache2/mods-available/proxy.conf

especially if you donĀ“t use the proxy permission config from above...

cheers