Hi,
I have a question related to galaxy running behind webserver proxy. In the wiki it is explained how to run galaxy behind apache running on the same host (https://wiki.galaxyproject.org/Admin/Config/ApacheProxy). Is there a way to use a proxy webserver running on a different host?
I tried the following by replacing "localhost" with the "ip address of the host running galaxy" as follows. But it doesn't seem to work. I don't even see any error/access messages in error_log or access_log. Is there any configuration that I am missing ?
RewriteEngine On
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy/static/style/(.*) /data/pkg/galaxy/static/june_2007_style/blue/$1 [L]
RewriteRule ^/galaxy/static/scripts/(.*) /data/pkg/galaxy/static/scripts/packed/$1 [L]
RewriteRule ^/galaxy/static/(.*) /data/pkg/galaxy/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico /data/pkg/galaxy/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt /data/pkg/galaxy/static/robots.txt [L]
RewriteRule ^/galaxy/(.*) http://192.168.1.21:8080$1 [P]
Thanks for your suggestions.
I found the solution myself after reading through some tutorials on the web.
I had to include proxy requests, along with the above. It works good now!
ProxyRequests On
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy/static/style/(.*) /data/pkg/galaxy/static/june_2007_style/blue/$1 [L]
RewriteRule ^/galaxy/static/scripts/(.*) /data/pkg/galaxy/static/scripts/packed/$1 [L]
RewriteRule ^/galaxy/static/(.*) /data/pkg/galaxy/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico /data/pkg/galaxy/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt /data/pkg/galaxy/static/robots.txt [L]
RewriteRule ^/galaxy/(.*) http://192.168.1.21:8080$1 [P]
ProxyPass /galaxy http://192.168.1.21:8080
ProxyPassReverse /galaxy http://192.168.1.21:8080