Re: [galaxy-dev] Apache configuration problem

2011-08-04 Thread sohkhan
Hi,

I am having the same problem.  I am running Galaxy an Mac.OS tiger 10.6. I 
was wondering if there was a solution suggested. 
Thanks.

-Sohail



From:   Paul Gordon gord...@ucalgary.ca
To: joachim.ja...@vib.be
Cc: galaxy-dev@lists.bx.psu.edu
Date:   08/02/2011 03:37 PM
Subject:Re: [galaxy-dev] Apache configuration problem
Sent by:galaxy-dev-boun...@lists.bx.psu.edu



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:

  http://lists.bx.psu.edu/

-- 
__
Paul Gordon
Bioinformatics Support Specialist
Alberta Children's Hospital Research Institute
http://www.ucalgary.ca/~gordonp
___
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:

  http://lists.bx.psu.edu/
___
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:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Apache configuration problem

2011-08-02 Thread Paul Gordon

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:

  http://lists.bx.psu.edu/


--
__
Paul Gordon
Bioinformatics Support Specialist
Alberta Children's Hospital Research Institute
http://www.ucalgary.ca/~gordonp

___
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:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Apache configuration problem?

2011-04-12 Thread Yu Wang
hi, sarah, sorry for the confusion. I did change those lines with my own
directories. And the files are readable for others.

Regards,
Yu

Yu Wang

Office:
Department of Plant Science
Center for Life and Food Sciences Weihenstephan
Technical University Munich

Lehrstuhl für Pflanzenzüchtung
Wissenschaftszentrum Weihenstephan für Ernährung, 
Landnutzung und Umwelt
Technische Universität München

Room 026, Emil-Ramann-Str. 4 (old: Am Hochanger 4)
Tel: ++49 8161 71-4139

Lab:
Lehrstuhl für Genomorientierte Bioinformatik 
Maximus-von-Imhof-Forum 3.
Room  OG-L 09 
Tel: ++49 8161 71-2132

yu.w...@wzw.tum.de
D-85354 Freising
Germany
___
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:

  http://lists.bx.psu.edu/