Applicable to:
- Plesk for Linux
Symptoms
- The website fails to load with error:
PLESK_INFO: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, info@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log. -
/var/www/vhosts/system/example.com/logs/error_log
contains the following:CONFIG_TEXT: [error] [client 203.0.113.2] 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., referer: http://example.com/
ORCONFIG_TEXT: [core:alert] [pid 18159] [client 203.0.113.2:38306] /var/www/vhosts/example.com/httpdocs/.htaccess: without matching section
ORCONFIG_TEXT: [core:alert] /var/www/vhosts/example.com/httpdocs/.htaccess: Invalid command 'alllow', perhaps misspelled or defined by a module not included in the server configuration Apache error
ORCONFIG_TEXT: [proxy_fcgi:error] [pid 6378:tid 140153632777984] [client 203.0.113.2:57368] malformed header from script 'index.php': Bad header
Cause
Incorrect rewrite rules in
.htaccess
file causing constant redirecting.
Resolution
- Log into Plesk;
- Navigate to Domains > example.com > File Manager;
- Rename the
.htaccess
:or replace .htaccess content with default one by slelcting Edit... option on the above sceen:
CONFIG_TEXT: # BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Note: If
.htaccess
file is not present on any level of
httpdocs
directory, consider checking subscription directory, e.g.
/var/www/vhosts/example.com
Comments
6 comments
Hi, change it to what? EG any do and donts?
I renamed too .htaccess1 and although the errors have gone, so hvae 15000 of my videos.. arrghhh help
@Mark White
In this case, it is required to manually review the configuration of '.htaccess' file to disable the unwanted redirect and make sure that directives that allow videos to display still work.
https://stackoverflow.com/ provides suggestions on any possible '.htaccess'-related issue, so I suggest starting there.
El problema es que no puedo entrar a Plesk
El problema es que no puedo entrar a Plesk
Hello, how can I do the same but with web.config (IIS 10)?
by example
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
Please sign in to leave a comment.