I used this step by step :

https://bitbucket.org/galaxy/galaxy-central/wiki/Config/ApacheProxy

to set up galaxy with apache proxy.

 

I added these lines to httpd.conf file :

RewriteEngine on

RewriteRule ^/galaxy$ /galaxy/ [R]

RewriteRule ^/galaxy/static/style/(.*) /usr/local/bioinfo/galaxy/galaxy_dist/static/june_2007_style/blue/$1 [L]

RewriteRule ^/galaxy/static/scripts/(.*) /usr/local/bioinfo/galaxy/galaxy_dist/static/scripts/packed/$1 [L]

RewriteRule ^/galaxy/static/(.*) /usr/local/bioinfo/galaxy/galaxy_dist/static/$1 [L]

RewriteRule ^/galaxy/favicon.ico /usr/local/bioinfo/galaxy/galaxy_dist/static/favicon.ico [L]

RewriteRule ^/galaxy/robots.txt /usr/local/bioinfo/galaxy/galaxy_dist/static/robots.txt [L]

RewriteRule ^/galaxy(.*) http://localhost:7070$1 [P]

 

And these ones to universe_wsgi.ini :

[filter:proxy-prefix]

use = egg:PasteDeploy#prefix

prefix = /galaxy

[app:main]

filter-with = proxy-prefix

cookie_path = /galaxy

 

 

I face a problem with the history panel which always displays : “Your history is empty. Click 'Get Data' on the left pane to start ». Even if I upload Data, even if I log into galaxy.

 

Here is an output of galaxy logs :

195.221.174.200 - - [13/Apr/2011:16:38:56 +0200] "GET /galaxy/tool_runner?tool_id=upload1 HTTP/1.1" 200 - "http://marmadais.cirad.fr:7070/galaxy/root/tool_menu" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0"

galaxy.web.framework DEBUG 2011-04-13 16:39:04,250 Error: this request returned None from get_history(): http://marmadais.cirad.fr:7070/galaxy/tool_runner/upload_async_create

galaxy.web.framework DEBUG 2011-04-13 16:39:04,251 Error: this request returned None from get_history(): http://marmadais.cirad.fr:7070/galaxy/tool_runner/upload_async_create

galaxy.web.framework DEBUG 2011-04-13 16:39:04,251 Error: this request returned None from get_history(): http://marmadais.cirad.fr:7070/galaxy/tool_runner/upload_async_create

galaxy.web.framework DEBUG 2011-04-13 16:39:04,251 Error: this request returned None from get_history(): http://marmadais.cirad.fr:7070/galaxy/tool_runner/upload_async_create

galaxy.web.framework DEBUG 2011-04-13 16:39:04,251 Error: this request returned None from get_history(): http://marmadais.cirad.fr:7070/galaxy/tool_runner/upload_async_create

195.221.174.200 - - [13/Apr/2011:16:39:04 +0200] "POST /galaxy/tool_runner/upload_async_create HTTP/1.1" 500 - "http://marmadais.cirad.fr:7070/galaxy/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0"

Error - <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'id'

URL: http://marmadais.cirad.fr:7070/galaxy/tool_runner/upload_async_create

File '/SATA/bioinfo/galaxy/galaxy_dist/eggs/Paste-1.6-py2.6.egg/paste/exceptions/errormiddleware.py', line 143 in __call__

  app_iter = self.application(environ, start_response)

File '/SATA/bioinfo/galaxy/galaxy_dist/eggs/Paste-1.6-py2.6.egg/paste/recursive.py', line 80 in __call__

  return self.application(environ, start_response)

File '/SATA/bioinfo/galaxy/galaxy_dist/eggs/Paste-1.6-py2.6.egg/paste/httpexceptions.py', line 632 in __call__

  return self.application(environ, start_response)

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/web/framework/base.py', line 145 in __call__

  body = method( trans, **kwargs )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/web/framework/__init__.py', line 65 in decorator

  return simplejson.dumps( func( self, trans, *args, **kwargs ) )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/web/controllers/tool_runner.py', line 212 in upload_async_create

  errors = tool.update_state( trans, tool.inputs, tool_state.inputs, kwd, update_only = True )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/tools/__init__.py', line 1192 in update_state

  value, error = check_param( trans, input, incoming_value, context )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/tools/parameters/__init__.py', line 56 in check_param

  value = param.from_html( value, trans, param_values )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/tools/parameters/basic.py', line 638 in from_html

  legal_values = self.get_legal_values( trans, context )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/tools/parameters/basic.py', line 808 in get_legal_values

  return set( dbkey for dbkey, _ in trans.db_builds )

File '/SATA/bioinfo/galaxy/galaxy_dist/lib/galaxy/web/framework/__init__.py', line 695 in db_builds

  .filter_by( deleted=False, history_id=self.history.id, extension="len" )

AttributeError: 'NoneType' object has no attribute 'id'

 

 

Any help welcome.

 

Thankx.