Hello everyone,
I've had this issue in the past with EA3 but I stumbled on it again with EA4.
All my servers showed a considerable amount of internal redirect errors, in the /etc/apache2/logs/error_log file. The error looks like:
Upon further investigation, I found the following redirection issue:
public_html/.htaccess matches a rewriterule: RewriteRule .* - [F] (F=forbidden with 403 error)
redirected to cPanel error document handler /403.shtml
apache file not found for 403.shtml, redirect to 404 not found
apache file not found for 404.shtml, redirect to 404 not found
etc until it hits 10 redirections then 500 error
So, based on the above redirection mess, when a hosted website gives a 403 (forbidden) error, it ends up doing 10 redirections and gives up with 500 error in the logs (user still gets a 403 I believe).
The solutions:
1) force all hosted sites to have (400 to 510).shtml files, and/or at least 404.shtml to avoid all those redirections.
2) delete the cperror.conf and errordocument.conf from apache's configuration and re-create httpd.conf and restart apache.
3) maybe cPanel could allow the admin to disable custom error redirects from the Apache configuration in WHM?
I've had this issue in the past with EA3 but I stumbled on it again with EA4.
All my servers showed a considerable amount of internal redirect errors, in the /etc/apache2/logs/error_log file. The error looks like:
Code:
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.
public_html/.htaccess matches a rewriterule: RewriteRule .* - [F] (F=forbidden with 403 error)
redirected to cPanel error document handler /403.shtml
apache file not found for 403.shtml, redirect to 404 not found
apache file not found for 404.shtml, redirect to 404 not found
etc until it hits 10 redirections then 500 error
So, based on the above redirection mess, when a hosted website gives a 403 (forbidden) error, it ends up doing 10 redirections and gives up with 500 error in the logs (user still gets a 403 I believe).
The solutions:
1) force all hosted sites to have (400 to 510).shtml files, and/or at least 404.shtml to avoid all those redirections.
2) delete the cperror.conf and errordocument.conf from apache's configuration and re-create httpd.conf and restart apache.
3) maybe cPanel could allow the admin to disable custom error redirects from the Apache configuration in WHM?