[horde] Too Many Apache Internal Redirects for /nag/task.php?actionID=add_task&tasklist_id=XGcpFDPh0hWdHpJR6F4Opw2

Andy Dorman adorman at ironicdesign.com
Mon Nov 4 22:26:21 UTC 2013


I apologize in advance if this is not the proper mailing list to post 
this on...not sure if this is a Horde apache config, nag .htaccess or 
debian packaging problem....

My environment is the latest Debian apt install (thanks to Mathieu 
Parent's hard work), Horde 5.1.4, Tasks (nag) 4.1.2, PHP 5.5, and Apache 
2.4.6.

Everything has been working fine, but it sometime in the past two months 
(I do not use nag as often as I should ;-), something caused nag's 
add_task action to trigger this apache error:

2013-11-04T16:02:09.283781-06:00 yorick apache2[633]: [core:error] [pid 
633:tid 140599831254784] [client 71.207.183.174:47426] AH00124: Request 
exceeded the limit of 10 internal redirects due to probable 
configuration error. Use 'LimitInternalRecursion' to increase the limit 
if necessary. Use 'LogLevel debug' to get a backtrace.

My related Apache configs are:

/etc/apache/confs-available/php-horde.conf is
----------------------------------
> <Directory /usr/share/horde>
>     AllowOverride Limit FileInfo
> </Directory>

Apache site config looks like this
----------------------------------
<VirtualHost *:80>
   ServerAlias beta.mail.army.com
   DirectoryIndex index.php
   DocumentRoot /usr/share/horde/
   SuexecUserGroup www-data www-data
   IPCCommTimeout 120
   <Files "*.php">
     SetHandler fcgid-script
     FcgidWrapper /var/www/mail.army.com/php5-cgi .php
   </Files>
   FcgidMaxRequestLen 10496000
</VirtualHost>

I did some research and as a test, I changed the /nag/.htaccess file to 
use "RewriteBase /" instead of "RewriteBase /horde" as shown below.
----------------------------------
# IMPORTANT: DO NOT EDIT THIS FILE!
# It will be overwritten with any future upgrade.

allow from all

<IfModule mod_rewrite.c>
     RewriteEngine On
#    RewriteBase /horde
     RewriteBase /
     RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     RewriteCond   %{REQUEST_FILENAME}  !-d
     RewriteCond   %{REQUEST_FILENAME}  !-f
     RewriteRule ^(.*)$ rampage.php [QSA,L]
</IfModule>


The problem goes away with the /nag/.htaccess above.

So does anyone have a suggestion for anything I could change in my 
Apache config to fix this instead of mucking around nag's .htaccess file?

Thanks for any thoughts.

-- 
Andy Dorman



More information about the horde mailing list