[GH-ISSUE #120] problem with apache 2.4 installation #92

Closed
opened 2026-02-26 09:35:48 +03:00 by kerem · 4 comments
Owner

Originally created by @hboumedane on GitHub (Nov 17, 2014).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/120

I'm having this error when I try to access my vimbadmin installation

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.

here my virtual host for apache 2.4 and my .htaccess

############## .htaccess

SetEnv APPLICATION_ENV production

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.$ - [NC,L]
RewriteRule ^.
$ /vimbadmin/index.php [NC,L]

############ virtual host

<VirtualHost *:80>
ServerName mail-server02
ServerAdmin webmaster

    DocumentRoot /var/www/vimbadmin/public

    <Directory />
            Options FollowSymLinks
            AllowOverride None
            Require all granted
    </Directory>

<Directory /var/www/vimbadmin/public>
Options FollowSymLinks
AllowOverride None

            # For Apache >= 2.4
            Require all granted

            AllowOverride all
            Order Deny,Allow
            Allow from all

            SetEnv APPLICATION_ENV production

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} -s [OR]
            RewriteCond %{REQUEST_FILENAME} -l [OR]
            RewriteCond %{REQUEST_FILENAME} -d
            RewriteRule ^.*$ - [NC,L]
            RewriteRule ^.*$ /vimbadmin/index.php [NC,L]
    </Directory>
    LogLevel debug
    ErrorLog /var/www/vimbadmin/error.log
    CustomLog /var/www/vimbadmin/access.log combined

any idea about this error ??

Originally created by @hboumedane on GitHub (Nov 17, 2014). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/120 I'm having this error when I try to access my vimbadmin installation 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. here my virtual host for apache 2.4 and my .htaccess ###### ############## .htaccess SetEnv APPLICATION_ENV production RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^._$ - [NC,L] RewriteRule ^._$ /vimbadmin/index.php [NC,L] ###### ############ virtual host <VirtualHost *:80> ServerName mail-server02 ServerAdmin webmaster ``` DocumentRoot /var/www/vimbadmin/public <Directory /> Options FollowSymLinks AllowOverride None Require all granted </Directory> ``` <Directory /var/www/vimbadmin/public> Options FollowSymLinks AllowOverride None ``` # For Apache >= 2.4 Require all granted AllowOverride all Order Deny,Allow Allow from all SetEnv APPLICATION_ENV production RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /vimbadmin/index.php [NC,L] </Directory> LogLevel debug ErrorLog /var/www/vimbadmin/error.log CustomLog /var/www/vimbadmin/access.log combined ``` </VirtualHost> any idea about this error ??
kerem closed this issue 2026-02-26 09:35:48 +03:00
Author
Owner

@barryo commented on GitHub (Nov 17, 2014):

This is really a mailing list question, not a bug report.

Can you clean up your config above as it's difficult to read as is.

<!-- gh-comment-id:63311204 --> @barryo commented on GitHub (Nov 17, 2014): This is really a mailing list question, not a bug report. Can you clean up your config above as it's difficult to read as is.
Author
Owner

@hboumedane commented on GitHub (Nov 17, 2014):

sorry i didn't notice that i'm in mailing list , anyway her the config 👍
#################### .htaccess
SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.$ - [NC,L]
RewriteRule ^.$ /vimbadmin/index.php [NC,L]
#######################################

and here my virtual host config file 👍
########################### virtual host ###################################
VirtualHost *:80
ServerName mail-server02
ServerAdmin webmaster

    DocumentRoot /var/www/vimbadmin/public

    <Directory />
            Options FollowSymLinks
            AllowOverride None
            Require all granted
    </Directory>
    <Directory /var/www/vimbadmin/public>
            Options FollowSymLinks
            AllowOverride None

            # For Apache >= 2.4
            Require all granted

            SetEnv APPLICATION_ENV production

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} -s [OR]
            RewriteCond %{REQUEST_FILENAME} -l [OR]
            RewriteCond %{REQUEST_FILENAME} -d
            RewriteRule ^.*$ - [NC,L]
            RewriteRule ^.*$ /vimbadmin/index.php [NC,L]
    </Directory>
    LogLevel debug
    ErrorLog /var/www/vimbadmin/error.log
    CustomLog /var/www/vimbadmin/access.log combined

VirtualHost
##############################################################################

<!-- gh-comment-id:63312413 --> @hboumedane commented on GitHub (Nov 17, 2014): sorry i didn't notice that i'm in mailing list , anyway her the config :+1: #################### .htaccess SetEnv APPLICATION_ENV production RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.$ - [NC,L] RewriteRule ^.$ /vimbadmin/index.php [NC,L] ####################################### and here my virtual host config file :+1: ########################### virtual host ################################### VirtualHost *:80 ServerName mail-server02 ServerAdmin webmaster ``` DocumentRoot /var/www/vimbadmin/public <Directory /> Options FollowSymLinks AllowOverride None Require all granted </Directory> <Directory /var/www/vimbadmin/public> Options FollowSymLinks AllowOverride None # For Apache >= 2.4 Require all granted SetEnv APPLICATION_ENV production RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /vimbadmin/index.php [NC,L] </Directory> LogLevel debug ErrorLog /var/www/vimbadmin/error.log CustomLog /var/www/vimbadmin/access.log combined ``` VirtualHost ##############################################################################
Author
Owner

@barryo commented on GitHub (Nov 17, 2014):

  1. Reduce your .htaccess file to just:
SetEnv APPLICATION_ENV production
  1. Set your vhost file as follows:
    DocumentRoot /var/www/vimbadmin/public

    <Directory />
            Options FollowSymLinks
            AllowOverride None
            Require all granted
    </Directory>

    Alias /vimbadmin /var/www/vimbadmin/public
    <Directory /var/www/vimbadmin/public>
            Options FollowSymLinks
            AllowOverride None

            # For Apache >= 2.4
            Require all granted

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} -s [OR]
            RewriteCond %{REQUEST_FILENAME} -l [OR]
            RewriteCond %{REQUEST_FILENAME} -d
            RewriteRule ^.*$ - [NC,L]
            RewriteRule ^.*$ /vimbadmin/index.php [NC,L]
    </Directory>
    LogLevel debug
    ErrorLog /var/www/vimbadmin/error.log
    CustomLog /var/www/vimbadmin/access.log combined
<!-- gh-comment-id:63313065 --> @barryo commented on GitHub (Nov 17, 2014): 1. Reduce your `.htaccess` file to just: ``` apache SetEnv APPLICATION_ENV production ``` 1. Set your vhost file as follows: ``` apache DocumentRoot /var/www/vimbadmin/public <Directory /> Options FollowSymLinks AllowOverride None Require all granted </Directory> Alias /vimbadmin /var/www/vimbadmin/public <Directory /var/www/vimbadmin/public> Options FollowSymLinks AllowOverride None # For Apache >= 2.4 Require all granted RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /vimbadmin/index.php [NC,L] </Directory> LogLevel debug ErrorLog /var/www/vimbadmin/error.log CustomLog /var/www/vimbadmin/access.log combined ```
Author
Owner

@hboumedane commented on GitHub (Nov 17, 2014):

thanks it's working fine now

<!-- gh-comment-id:63315207 --> @hboumedane commented on GitHub (Nov 17, 2014): thanks it's working fine now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#92
No description provided.