It's the last rewrite rule that's causing the infinite recursion:
RewriteRule ^/galaxy(.*) http://localhost:8080$1 [P]

Check out this link:
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule
Look for the table of given rules and resulting substitutions - the proxying
appears to be supported for other hosts but not the same host.

-Scott


Here is a copy of the whole VirtualHost section.
Thanks,
Adhemar



<VirtualHost lbas046.cnptia.embrapa.br:443>

ServerName lbas046.cnptia.embrapa.br
ErrorLog logs/galaxy_ssl_error_log
TransferLog logs/galaxy_ssl_access_log
LogLevel warn

SSLEngine on

SSLCertificateFile /etc/pki/tls/certs/lbas046.cnptia.embrapa.br.crt
SSLCertificateKeyFile /etc/pki/tls/private/lbas046.cnptia.embrapa.br.key.insecure
SSLCACertificateFile /etc/pki/tls/certs/cacert.pem



       RewriteEngine on
       RewriteRule ^/galaxy$ /galaxy/ [R]
       RewriteRule ^/galaxy/static/style/(.*) /opt/bioinformatics/share/galaxy-central/static/june_2007_style/blue/$1 [L]
       RewriteRule ^/galaxy/static/scripts/(.*) /opt/bioinformatics/share/galaxy-central/static/scripts/packed/$1 [L]
       RewriteRule ^/galaxy/static/(.*) /opt/bioinformatics/share/galaxy-central/static/$1 [L]
       RewriteRule ^/galaxy/favicon.ico /opt/bioinformatics/share/galaxy-central/static/favicon.ico [L]
       RewriteRule ^/galaxy/robots.txt /opt/bioinformatics/share/galaxy-central/static/robots.txt [L]
       RewriteRule ^/galaxy(.*) http://localhost:8080$1 [P]


     <Location "/galaxy">
       AuthType Basic
       AuthName Galaxy_pam
       AuthPAM_Enabled on
       Require valid-user

        RewriteEngine On
        RewriteCond %{LA-U:REMOTE_USER} (.+)
        RewriteRule . - [E=RU:%1]
        RequestHeader set REMOTE_USER "%{RU}e" env=RU
     </Location>

</VirtualHost>


2012/8/22 Nate Coraor <nate@bx.psu.edu>
On Aug 21, 2012, at 4:44 PM, Adhemar wrote:

> Hi,
> There's this error message in my apache log:
>
>  [error] Request exceeded the limit of 10 subrequest nesting levels due to probable confguration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: ...
>
>
> When I turn the apache debug log on it also shows:
>
>
> [debug] core.c(3072):  r->uri = /galaxy/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/proxy:http://localhost:8080/root/history_item_updates, referer: ...
>
>
> It seems like mod_rewrite is somehow misconfigured, but I couldb't figure out what it is.
>
> Here is my httpd.con mod_rewrite conf:
>
>
>        RewriteEngine on
>        RewriteRule ^/galaxy$ /galaxy/ [R]
>        RewriteRule ^/galaxy/static/style/(.*) /opt/bioinformatics/share/galaxy-central/static/june_2007_style/blue/$1 [L]
>        RewriteRule ^/galaxy/static/scripts/(.*) /opt/bioinformatics/share/galaxy-central/static/scripts/packed/$1 [L]
>        RewriteRule ^/galaxy/static/(.*) /opt/bioinformatics/share/galaxy-central/static/$1 [L]
>        RewriteRule ^/galaxy/favicon.ico /opt/bioinformatics/share/galaxy-central/static/favicon.ico [L]
>        RewriteRule ^/galaxy/robots.txt /opt/bioinformatics/share/galaxy-central/static/robots.txt [L]
>        RewriteRule ^/galaxy(.*) http://localhost:8080$1 [P]

Hi Adhemar,

I've moved this over to the galaxy-dev list since it's concerning a local installation.

Are there any other RewriteRules defined?  Are these directives inside another block, or just inside a <VirtualHost>?  It would be useful to see your entire VirtualHost config.

--nate

>
>
> Could you please help me to debug this?
>
> Thank you,
> Adhemar
> ___________________________________________________________
> The Galaxy User list should be used for the discussion of
> Galaxy analysis and other features on the public server
> at usegalaxy.org.  Please keep all replies on the list by
> using "reply all" in your mail client.  For discussion of
> local Galaxy instances and the Galaxy source code, please
> use the Galaxy Development list:
>
>  http://lists.bx.psu.edu/listinfo/galaxy-dev
>
> 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/