Question: Serving galaxy with apache
1
gravatar for asmariyaz23
3.3 years ago by
asmariyaz2310
United States
asmariyaz2310 wrote:

While trying to serve galaxy over apache, I used the following httpd.conf: (Note I am using a remote server)

[Edited to include the settings that worked for me]

NameVirtualHost *:8088
<VirtualHost *:8088> 
ServerName kcoserver.broadinstitute.org
ErrorLog logs/error_logs
RewriteEngine on
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/static/style/(.*) [path to galaxy]/static/june_2007_style/blue/$1 [L]
RewriteRule ^/static/scripts/(.*) [path to galaxy] /static/scripts/packed/$1 [L]
RewriteRule ^/static/(.*) [path to galaxy]/galaxy/static/$1 [L]
RewriteRule ^/favicon.ico [path to galaxy]/galaxy/static/favicon.ico [L]
RewriteRule ^/robots.txt [path to galaxy]/galaxy/static/robots.txt [L]
RewriteRule ^(/galaxy/.*) http://localhost:8080$1 [P]
</VirtualHost>

In galaxy.ini

port = 8080
host = localhost
[app:main]
filter-with = proxy-prefix
cookie_path = /galaxy

I start galaxy as a daemon process and restart apache.When I go to kcoserver.broadinstitute.org:8088/galaxy it now works.

Thank you ,

Asma

apache galaxy • 1.5k views
ADD COMMENTlink modified 3.3 years ago • written 3.3 years ago by asmariyaz2310

I assume you have read https://wiki.galaxyproject.org/Admin/Config/ApacheProxy - is that correct?

ADD REPLYlink written 3.3 years ago by Martin Čech ♦♦ 4.8k

Yes I have read it. I haven't edited the [app:main] section in galaxy.ini as I am starting from a very basic example. Is there more to it than I have done?

ADD REPLYlink written 3.3 years ago by asmariyaz2310

I don't think you need to start Galaxy before Apache but without both of them running the setup won't work. `sh run.sh` is a valid option.

Also you are missing the proxy [P] flag from example:

RewriteEngine on
RewriteRule ^(.*) http://localhost:8080$1 [P]

ADD REPLYlink modified 3.3 years ago • written 3.3 years ago by Martin Čech ♦♦ 4.8k

I have edited my post to include the [P] and apache error log as well

ADD REPLYlink written 3.3 years ago by asmariyaz2310

I do not think you need to change DocumentRoot as you want to use Apache as a proxy only. I don't know why it does not work for you - I will point some other people here.

ADD REPLYlink written 3.3 years ago by Martin Čech ♦♦ 4.8k

I just happened to figure it out. Will update my post. Thank you for walking me through it though

ADD REPLYlink written 3.3 years ago by asmariyaz2310

glad to hear that!

ADD REPLYlink written 3.3 years ago by Martin Čech ♦♦ 4.8k
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: 90 users visited in the last hour