Question: Serving galaxy with apache
1
asmariyaz23 • 10 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
I assume you have read https://wiki.galaxyproject.org/Admin/Config/ApacheProxy - is that correct?
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?
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]
I have edited my post to include the [P] and apache error log as well
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.
I just happened to figure it out. Will update my post. Thank you for walking me through it though
glad to hear that!