Running galaxy using Apache as proxy

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Running galaxy using Apache as proxy

Michael Place
 Hello,

I am trying to run galaxy using Apache as the proxy server.

This is intended to be internal to our lab.  I have galaxy running and working.
The problem is that the pages load slowly and then seem to time out after 10 min or so.
If I login and click get data then go away for a few minutes , then  I come back
and click a tool I get:

The connection to the server was reset while the page was loading.

If I retry the page loads.  This makes the page very clunky.

httpd.conf changes:

<IfModule mod_proxy.c>
ProxyRequests On
<Proxy * >
        Order deny,allow
        Deny from all
        Allow from *
</Proxy>

<VirtualHost *:8080>
        ServerName 192.168.0.240
        RewriteEngine on
        RewriteRule ^/galaxy$ /galaxy/ [R]
        RewriteRule ^/galaxy/static/style/(.*) /opt/galaxy-dist/static/june_2007_style/blue/$1 [L]
        RewriteRule ^/galaxy/static/scripts/(.*) /opt/galaxy-dist/static/scripts/packed/$1 [L]
        RewriteRule ^/galaxy/static/(.*) /opt/galaxy-dist/galaxy-dist/static/$1 [L]
        RewriteRule ^/galaxy/favicon.ico /opt/galaxy-dist/static/favicon.ico [L]
        RewriteRule ^/galaxy/robots.txt /opt/galaxy-dist/static/robots.txt [L]
        RewriteRule ^/galaxy(.*) http://localhost:8080$1 [P]
</VirtualHost>


I have attached the universe_wsgi.ini and my httpd.conf
I am running CentOS.

Thank you,

Mike









___________________________________________________________
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/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

universe_wsgi.ini (41K) Download Attachment
httpd.conf (46K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Running galaxy using Apache as proxy

Adam Brenner
Mike,

Looking at the configuration, you are not proxy'ing anything. Take a look at my pervious post here and see if that helps: http://dev.list.galaxyproject.org/Running-Galaxy-through-Apache-td4659452.html


Let us know how it goes! (I am planning on submitting a re-write for the Apache Proxy page as its missing information..feedback is appreciated).

-Adam

--
Adam Brenner
Computer Science, Undergraduate Student
Donald Bren School of Information and Computer Sciences

Research Computing Support
Office of Information Technology
http://www.oit.uci.edu/rcs/

University of California, Irvine
www.ics.uci.edu/~aebrenne/
[hidden email]




On Fri, May 3, 2013 at 11:25 AM, Michael Place <[hidden email]> wrote:
 Hello,

I am trying to run galaxy using Apache as the proxy server.

This is intended to be internal to our lab.  I have galaxy running and working.
The problem is that the pages load slowly and then seem to time out after 10 min or so.
If I login and click get data then go away for a few minutes , then  I come back
and click a tool I get:

The connection to the server was reset while the page was loading.

If I retry the page loads.  This makes the page very clunky.

httpd.conf changes:

<IfModule mod_proxy.c>
ProxyRequests On
<Proxy * >
        Order deny,allow
        Deny from all
        Allow from *
</Proxy>

<VirtualHost *:8080>
        ServerName 192.168.0.240
        RewriteEngine on
        RewriteRule ^/galaxy$ /galaxy/ [R]
        RewriteRule ^/galaxy/static/style/(.*) /opt/galaxy-dist/static/june_2007_style/blue/$1 [L]
        RewriteRule ^/galaxy/static/scripts/(.*) /opt/galaxy-dist/static/scripts/packed/$1 [L]
        RewriteRule ^/galaxy/static/(.*) /opt/galaxy-dist/galaxy-dist/static/$1 [L]
        RewriteRule ^/galaxy/favicon.ico /opt/galaxy-dist/static/favicon.ico [L]
        RewriteRule ^/galaxy/robots.txt /opt/galaxy-dist/static/robots.txt [L]
        RewriteRule ^/galaxy(.*) http://localhost:8080$1 [P]
</VirtualHost>


I have attached the universe_wsgi.ini and my httpd.conf
I am running CentOS.

Thank you,

Mike









___________________________________________________________
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/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/


___________________________________________________________
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/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/