- Plesk 12.5 for Linux
Cannot upload custom rules set file at Plesk > Tools & Settings > Web Application Firewall > Change Rule Set > Custom rule set. The following error occurs:
PLESK_ERROR: 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)
This is Plesk internal issue with ID PPPM-4162, which is planned to be fixed in future Plesk updates.
- Connect to the server using SSH.
- Apply the custom rules set manually:
# plesk bin server_pref --update-web-app-firewall -waf-rule-set custom -waf-archive-path /root/custom_rule_set.conf.tgz
Note: Path to the archive depends on it's location.