Question: access galaxy from apache proxy running on a different host
1
gravatar for smalkaram
3.4 years ago by
smalkaram • 0
smalkaram • 0 wrote:

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.

apache proxy • 2.1k views
ADD COMMENT • link • modified 3.4 years ago • written 3.4 years ago by smalkaram • 0

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

ADD REPLY • link written 3.2 years ago by smalkaram • 0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 166 users visited in the last hour