Apache proxy forward no longer working after update to 5.0

Need help? Post your questions here.

Moderator: moderators

Apache proxy forward no longer working after update to 5.0

Postby nickss » Fri Jan 16, 2015 4:53 am

I have been running Subsonic 4.x for ages with Apache2 proxy forwarding my Subsonic Jetty to Apache without any issues at all.
Today after updating to Subsonic 5.0 the proxy forwarding no longer works as expected to.

If I go to
Code: Select all
http://myserver/subsonic
I get forwarded to
Code: Select all
http://myserver/index.view
(see how /subsonic was removed from the URL).
If I go to
Code: Select all
http://myserver/subsonic/
(with the ending trail) I get in to the web interface successfully, but all resources (images, javascript etc) are broken as they are pointing to
Code: Select all
http://myserver/
(/subsonic/ is missing from the URL!).


Here is my Apache configuration:

Code: Select all
<VirtualHost *:80>
        RewriteEngine On
        ServerAdmin webmaster@pennybridge.dyndns.org
        DocumentRoot /home/www/sites/default/

        <Directory /home/www/sites/default/>
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>


        #
        # Logging
        #
        ErrorLog ${APACHE_LOG_DIR}/sites/default/error.log

        # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/sites/default/access.log combined


        #
        # Proxy forwarding for default virtual host
        #
        ProxyRequests Off
        ProxyPreserveHost On

        # Transmission Web
                <Proxy *:9091>
                        AddDefaultCharset off
                        Order Allow,Deny
                        Allow from all
                </Proxy>
                # Redirect requests to /transmission to /transmission/web
                RewriteRule /transmission[/]?$ /transmission/web/ [R=permanent]
                ProxyPass /transmission http://127.0.0.1:9091/transmission
                ProxyPassReverse /transmission http://127.0.0.1:9091/transmission

        # Subsonic
                <Proxy *:4040>
                        Order Allow,Deny
                        Allow from all
                </Proxy>
                ProxyPass /subsonic http://127.0.0.1:4040
                ProxyPassReverse /subsonic http://127.0.0.1:4040
</VirtualHost>



Do you guys have any suggestions on what to do here? This is driving me nuts! What has changed from version 4.x to 5.0 that can affect this?
I am thinking it might be some issue with base dir for the web HTML code?
nickss
 
Posts: 5
Joined: Sat May 10, 2014 1:26 pm

Re: Apache proxy forward no longer working after update to 5

Postby nickss » Fri Jan 16, 2015 5:08 am

FINALLY!! Half day of troubleshooting I found the reason thanks to this Sourceforge post:

http://sourceforge.net/p/subsonic/bugs/109/

What I did was to follow the instructions in the bug report above, and then update my Proxy settings in Apache accordingly (adding trailing /subsonic/):

Code: Select all
        #
        # Proxy forwarding for default virtual host
        #
        ProxyRequests Off
        ProxyPreserveHost On

        # Subsonic
                <Proxy *:4040>
                        Order Allow,Deny
                        Allow from all
                </Proxy>
                ProxyPass /subsonic http://127.0.0.1:4040/subsonic
                ProxyPassReverse /subsonic http://127.0.0.1:4040/subsonic



Now all works again! For next update I will for sure backup any init scripts and configuration files!
nickss
 
Posts: 5
Joined: Sat May 10, 2014 1:26 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests