Hi all,

I am trying to set up httpd to serve galaxy from the root url and to serve static content as described on http://wiki.g2.bx.psu.edu/Admin/Config/Apache%20Proxy. I will not serve Galaxy under a subdirectory.

I have added to /etc/httpd/conf.d/ a file galaxy.conf with contents (CentOS system):

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

Everything works after firing up httpd! :-)

But when adding following rewrite rules:

^/static/style/(.*)/home/galaxy/galaxy_dist/static/june_2007_style/blue/$1 [L]
^/static/scripts/(.*)/home/galaxy/galaxy_dist/static/scripts/packed/$1 [L]
RewriteRule  ^/static/(.*)/home/galaxy/galaxy_dist/static/$1 [L]
RewriteRule  ^/favicon.ico/home/galaxy/galaxy_dist/static/favicon.ico  [L]
RewriteRule  ^/robots.txt/home/galaxy/galaxy_dist/static/robots.txt  [L]

I get a page which is totally scrambled. At first sight, seems to be file permission problems. The apache log file (/var/log/httpd/error_log) shows (last two lines, but the lines before these are similar):

*[Tue Aug 02 15:26:03 2011] [error] [client x.x.x.x] File does not exist: /home/galaxy/galaxy_dist, referer: http://x.x.x.x/root/tool_menu [Tue Aug 02 15:26:03 2011] [error] [client x.x.x.x] File does not exist: /home/galaxy/galaxy_dist, referer: http://x.x.x.x/history*

Has anybody a clue on what I should do? I thought I will try these steps:
- I changed the group owner of several of the directories recursively to the apache group - I have set the SELinux permissions with *chcon -R -h -t httpd_sys_content_t static*

but no joy! :-(

Thanks for any hint.


Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:


Reply via email to