Our galaxy instance is hosted on our intranet server and made accessible to everyone through an apache proxy from our www web server.
Our galaxy architecture is set up through 2 apache proxies (one on each server). That is :
apache_www_server/galaxy (version 2.4.12) => apache_intranet_server/galaxy (version 2.4.39) => (uwsgi) galaxy
This architecture worked fine with our previous Galaxy instance (16.xy). Since upgrade to 19.01, the proxying chain does not work as expected.
From our galaxy www virtualhost, every action leads to the welcome page, data upload expected which works fine.
To set up our config, I followed the instructions serving-galaxy-at-a-url-prefix but had to comment one line causing url rewrite on client browsers.
Here are the apache configs :
-
on our www web server :
ProxyPass /galaxy/ http://our_intranet_server/galaxy/
ProxyPassReverse /galaxy/ http://our_intranet_server/galaxy/ -
on our intranet server :
<Location “/galaxy/”>
Require all granted
<Directory “/home/galaxy/galaxy/static”>
Require all granted
ProxyPass /galaxy uwsgi://127.0.0.1:3031/
#ProxyPass / uwsgi://localhost:3031/
RewriteEngine On
####RewriteRule ^/galaxy/$ /galaxy [R,L] #### Disabled because generating an url rewrite on client browsers => our_www_server/galaxy replaced by our_intranet_server/galaxy (not accessible to every one)
RewriteRule ^/galaxy/static/style/(.) /home/galaxy/galaxy/static/june_2007_style/blue/$1 [L]
#RewriteRule ^/galaxy/static/scripts/(.) /home/galaxy/galaxy/static/scripts/packed/$1 [L]
RewriteRule ^/galaxy/static/(.*) /home/galaxy/galaxy/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico /home/galaxy/galaxy/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt /home/galaxy/galaxy/static/robots.txt [L]
<Directory “/home/galaxy/galaxy/config/plugins/(.+)/(.+)/static”>
AllowOverride None
Require all granted
RewriteRule ^/galaxy/plugins/(.+)/(.+)/static/(.*)$ /home/galaxy/galaxy/config/plugins/$1/$2/static/$3 [L]
Is there any misconfiguration in our httpd.conf files ?
Is 19.01 buggy regarding proxying ? Shall we upgrade to 19.05 ?
Any help welcome.
Regards.