Cannot upload custom ModSecurity ruleset in Plesk 12.5: No matches for the wildcard

Created:

2016-11-16 13:05:31 UTC

Modified:

2017-08-08 13:35:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot upload custom ModSecurity ruleset in Plesk 12.5: No matches for the wildcard

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Cannot upload custom rules set file at Plesk > Tools & Settings > Web Application Firewall > Change Rule Set > Custom rule set.The following error occurs:

Failed to install the ModSecurity rule set: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/security2.conf: Syntax error on line 6 of /etc/httpd/conf/modsecurity.d/zz_rules.conf: No matches for the wildcard '*.conf' in '/etc/httpd/conf/modsecurity.d/rules/custom', failing (use IncludeOptional if required)

Cause

This is Plesk internal issue with ID #PPPM-4162 , which is planned to be fixed in future Plesk updates.

Workaround

Apply the custom rules set manually:

# /usr/local/psa/admin/bin/modsecurity_ctl --install --with-backup --ruleset custom --archive-path rules.conf

# /usr/local/psa/admin/bin/modsecurity_ctl --enable-ruleset --ruleset custom

# /usr/local/psa/admin/bin/apache-config -t
Have more questions? Submit a request
Please sign in to leave a comment.