After removing of ModSecurity all websites are showing 503 Service Unavailable

Created:

2016-11-16 13:19:23 UTC

Modified:

2017-04-24 11:19:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

After removing of ModSecurity all websites are showing 503 Service Unavailable

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

After removing ModSecurity all sites are showing 503 Service Unavailable error.

Cause

ModSecurity was not properly removed

Resolution

  1. Remove ModSecurity from Modules list in IIS Manager > <Hostname> > Modules

  2. Ensure that applicationHost.config file does not contain references to ModSecurityIIS.dll

    cmd.exe /c "findstr  ModSecurityIIS.dll "%systemroot%\\system32\\inetsrv\\config\\applicationHost.config""

In case if the file contains these entries:

  1. Backup applicationHost.config

    cd %systemroot%\\system32\\inetsrv\\config\\
    copy applicationHost.config applicationHost.config.original
  2. Edit applicationHost.config with notepad.exe and remove all entries that contain ModSecurityIIS.dll
    Note: Do not use WordPad .

Have more questions? Submit a request
Please sign in to leave a comment.