relative links to static pages broken for proxied web server
I'm serving the static pages for Galaxy in a subdirectory, and links like ../static/images/maf_icons/interval2maf.png are broken, because ../ is not matched in the regular expression block of the Apache configuration. The links should be absolute paths, not relative paths. David Hoover Helix Systems Staff http://helix.nih.gov
Hi David, Would a link like /static/images/maf_icons/interval2maf.png work for your configuration? Are you running galaxy in a subdirectory? Kanwei On Mon, Nov 8, 2010 at 8:41 AM, David Hoover <hooverdm@helix.nih.gov> wrote:
I'm serving the static pages for Galaxy in a subdirectory, and links like
../static/images/maf_icons/interval2maf.png
are broken, because ../ is not matched in the regular expression block of the Apache configuration. The links should be absolute paths, not relative paths.
David Hoover Helix Systems Staff http://helix.nih.gov
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
That's precisely it, I'm running Galaxy in a subdirectory. For now I've changed RewriteRule ^/galaxy/static/(.*) /data/galaxy/static/$1 [L] to RewriteRule /static/(.*) /data/galaxy/static/$1 [L] in the Apache configuration. This is possible because there is no ~/htdocs/static in the virtual host in which Galaxy is running. It would be better if there were no relative links like ../../static, but beggars can't be choosers. David On Nov 10, 2010, at 3:33 PM, Kanwei Li wrote: Hi David, Would a link like /static/images/maf_icons/interval2maf.png work for your configuration? Are you running galaxy in a subdirectory? Kanwei On Mon, Nov 8, 2010 at 8:41 AM, David Hoover <hooverdm@helix.nih.gov> wrote:
I'm serving the static pages for Galaxy in a subdirectory, and links like
../static/images/maf_icons/interval2maf.png
are broken, because ../ is not matched in the regular expression block of the Apache configuration. The links should be absolute paths, not relative paths.
David Hoover Helix Systems Staff http://helix.nih.gov
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
participants (2)
-
David Hoover
-
Kanwei Li