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>



   9. Re: [galaxy-user] LimitInternalRecursion (Nate Coraor)

------------------------------

Message: 9
Date: Wed, 22 Aug 2012 10:46:30 -0400
From: Nate Coraor <nate@bx.psu.edu>
To: azneto@gmail.com
Cc: galaxy-dev@lists.bx.psu.edu
Subject: Re: [galaxy-dev] [galaxy-user] LimitInternalRecursion
Message-ID: <BD7E4946-0184-4887-9E3D-17946ADCE79A@bx.psu.edu>
Content-Type: text/plain; charset=iso-8859-1

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