Hi guys,

Thanks for the helps. I used http://publicnet.org/galaxy for visiting the
site, so it's my typo.

On Fri, Jan 6, 2012 at 3:49 AM, Carlos Borroto <carlos.borr...@gmail.com>wrote:

>
> The fact your apache server is looking in /var/www/galaxy means the
> 'RewriteRule' is not working. Did you check if modwrite is activated
> in your apache install?
>

 I think the module is loaded and active. I checked it with  apache2ctl -t
-D DUMP_MODULES

Loaded Modules:
   .....
   rewrite_module (shared)
   .....
Syntax OK

I am not very confident with my config though. The Apache server is on
ubuntu 10.10 and was installed from apt-get. It has its own conf files
structure compares to the generic Apache:

ls -la /etc/apache2/mods-enabled/
....
lrwxrwxrwx 1 root root   28 2011-05-13 13:54 proxy.conf ->
../mods-available/proxy.conf
lrwxrwxrwx 1 root root   33 2011-05-13 14:56 proxy_http.load ->
../mods-available/proxy_http.load
lrwxrwxrwx 1 root root   28 2011-05-13 13:54 proxy.load ->
../mods-available/proxy.load
lrwxrwxrwx 1 root root   33 2011-04-11 14:23 reqtimeout.conf ->
../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root   33 2011-04-11 14:23 reqtimeout.load ->
../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root   30 2012-01-04 15:07 rewrite.load ->
../mods-available/rewrite.load
....

We have already had some other proxy settings inside proxy.conf, therefore
I also put the rewrite config into the proxy.conf.

The contents inside proxy.conf is something like:

<IfModule mod_proxy.c>

# If you want to use apache2 as a forward proxy, uncomment the
# 'ProxyRequests On' line and the <Proxy *> block below.
# WARNING: Be careful to restrict access inside the <Proxy *> block.
# Open proxy servers are dangerous both to your network and to the
# Internet at large.
#
# If you only want to use apache2 as a reverse proxy/gateway in
# front of some web application server, you DON'T need
# 'ProxyRequests On'.

#ProxyRequests On
#<Proxy *>
#        AddDefaultCharset off
#        Order deny,allow
#        Deny from all
#        #Allow from .example.com
#</Proxy>

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via:
headers)
# Set to one of: Off | On | Full | Block
#ProxyVia Off

ProxyPass /caarray http://caarray.privatenet.org:38080/caarray
ProxyPassReverse /caarray http://caarray.privatenet.org:38080/caarray
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy/static/style/(.*)
/NFS/PATH/TO/galaxy/static/june_2007_style/blue/$1 [L]
RewriteRule
^/galaxy/static/scripts/(.*) /NFS/PATH/TO/galaxy/static/scripts/packed/$1
[L]
RewriteRule ^/galaxy/static/(.*) /NFS/PATH/TO/galaxy/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico /NFS/PATH/TO/galaxy/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt /NFS/PATH/TO/galaxy/static/robots.txt [L]
RewriteRule ^/galaxy(.*) http://galaxy.privatenet.org:8080$1 [P]
</IfModule>

Have I put the rewrite settings in the wrong place?

I also want to clarify if I need to create the symlink to galaxy inside
/var/www/?

Please let me know if other details are needed.

Cheers,
Derrick
___________________________________________________________
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/

Reply via email to