Plesk

Login to PHP/ASP application fails with no error error when ModSecurity is enabled with “Tradeoff” or “Thorough” mode in Plesk for Windows

Symptoms

Cause

This is an issue in ModSecurity for IIS web server.

When changing the predefined set of values to "Tradeoff" or "Thorough" in ModSecurity settings (Tools & Settings > Web Application Firewall (ModSecurity)), the following warning message appears:

Selecting the "Tradeoff" or "Thorough" options may cause WordPress sites to malfunction, among other unwanted side effects, because of the following ModSecurity issue.

Resolution

  1. Log in to Plesk.

  2. Go to Tools & Settings > Web Application Firewall (ModSecurity) > Settings.

  3. Add the line below into the Custom directives field:

    SecStreamInBodyInspection on

  4. Apply the changes.