Question: Should static-map also be changed on an address other than the web server root?
0
gravatar for seungminkim
21 days ago by
seungminkim10
seungminkim10 wrote:
static-map: /static/style=static/style/blue
static-map: /static=static

The default settings on galaxy.yml have this.
However, the docs (https://docs.galaxyproject.org/en/master/admin/apache.html#serving-galaxy-at-a-url-prefix) say that only the below configs should be changed when deploying Galaxy on an address other than the web server root.

uwsgi:
    #...
    socket: unix:///srv/galaxy/var/uwsgi.sock
    mount: /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()
    manage-script-name: true
    # `module` MUST NOT be set when `mount` is in use
    #module: galaxy.webapps.galaxy.buildapp:uwsgi_app()

galaxy:
    #...
    cookie_path: /galaxy

Should the settings for static-map also be mapped to such as this for Galaxy to work like this?:

static-map: /galaxy/static/style=static/style/blue
static-map: /galaxy/static=static

However, none of this is documented.

galaxy • 63 views
ADD COMMENTlink modified 14 days ago by gb60 • written 21 days ago by seungminkim10

Seriously, no one???
This does not look well documented in the docs....

ADD REPLYlink written 14 days ago by seungminkim10
0
gravatar for gb
14 days ago by
gb60
gb60 wrote:

Is it not that you need to change this:

# proxy all requests not matching other locations to uWSGI
ProxyPass / unix:///srv/galaxy/var/uwsgi.sock|uwsgi://
# or uWSGI on a TCP socket
#ProxyPass / uwsgi://127.0.0.1:4001/

# serve framework static content
RewriteEngine On
RewriteRule ^/static/style/(.*) ${galaxy_root}/static/style/blue/$1 [L]
RewriteRule ^/static/(.*) ${galaxy_root}/static/$1 [L]
RewriteRule ^/favicon.ico ${galaxy_root}/static/favicon.ico [L]
RewriteRule ^/robots.txt ${galaxy_root}/static/robots.txt [L]

Into:

# proxy all requests not matching other locations to uWSGI
ProxyPass /galaxy unix:///srv/galaxy/var/uwsgi.sock|uwsgi://
# or uWSGI on a TCP socket
#ProxyPass /galaxy uwsgi://127.0.0.1:4001/

# serve framework static content
RewriteEngine On
RewriteRule ^/galaxy/$ /galaxy [R,L]
RewriteRule ^/galaxy/static/style/(.*) ${galaxy_root}/static/style/blue/$1 [L]
RewriteRule ^/galaxy/static/(.*) ${galaxy_root}/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico ${galaxy_root}/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt ${galaxy_root}/static/robots.txt [L]

And do nothing with:

static-map: /static/style=static/style/blue
static-map: /static=static

Because the routing and stuff will be handled by those rewrite settings.

ADD COMMENTlink modified 14 days ago • written 14 days ago by gb60

OK, thank you very much, was wondering if I missed something.

ADD REPLYlink modified 14 days ago • written 14 days ago by seungminkim10

I never installed galaxy in combination with apache but if the manual says nothing about static-map you should not do anything with it. Do you have problems or errors?

ADD REPLYlink written 14 days ago by gb60
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: 152 users visited in the last hour