Hi Joachim, I'm not sure what's wrong with your setup, but for what it's worth I could not get the provided instructions to work properly either, when I combined the proxy with a step to authenticate against our University's single-sign service (CAS). Not sure if you're going to do authentication as well, but here are the Apache proxy directives I got to work... ProxyVia On ProxyPassInterpolateEnv On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/ Cheers, Paul Joachim Jacob wrote:
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: RewriteRule ^/static/style/(.*) /home/galaxy/galaxy_dist/static/june_2007_style/blue/$1 [L] RewriteRule ^/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.
Joachim
------------------------------------------------------------------------
___________________________________________________________ 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:
-- ______________ Paul Gordon Bioinformatics Support Specialist Alberta Children's Hospital Research Institute http://www.ucalgary.ca/~gordonp