Subsonic and Apache reverse Proxy problem

Tutorials, tips and tricks.

Moderator: moderators

Subsonic and Apache reverse Proxy problem

Postby manovel » Fri Oct 01, 2010 9:39 am

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?
manovel
 
Posts: 2
Joined: Fri Oct 01, 2010 9:34 am

Postby nipar » Sun Nov 14, 2010 6:12 am

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=
nipar
 
Posts: 19
Joined: Fri Nov 12, 2010 6:07 am

Postby Exrace » Sun Nov 14, 2010 12:59 pm

Saved password maybe? :oops:
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Postby nipar » Mon Nov 15, 2010 7:36 am

ah, you mean the "Remember me" option :) that would do it
nipar
 
Posts: 19
Joined: Fri Nov 12, 2010 6:07 am

Postby manovel » Fri Dec 17, 2010 8:26 pm

Mod_proxy is active, I'm using that for other things as well, without problems.

remember password was never cheeked!

Other suggestions?

Thank you
manovel
 
Posts: 2
Joined: Fri Oct 01, 2010 9:34 am

Postby jungsterber » Sat Jul 30, 2011 7:01 pm

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
jungsterber
 
Posts: 1
Joined: Sat Jul 30, 2011 6:51 pm


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 17 guests