"modsecurity_rules_file" directive Rules error.

I'm unsure what I did when setting up modsecurity in /etc/nginx/conf.d/default.conf, here's the entire error:
"modsecurity_rules_file" directive Rules error. File: /etc/nginx/modsecurity/modsecurity.conf. Line: 236. Column: 17. Failed to locate the unicode map file from: unicode.mapping Looking at: 'unicode.mapping', 'unicode.mapping', '/etc/nginx/modsecurity/unicode.mapping', '/etc/nginx/modsecurity/unicode.mapping'.  in /etc/nginx/conf.d/default.conf:13
What does it mean that it can't find the unicode map file? What's going on?

Thanks!

-scott
  • post-author-pic
    Keith T
    11-29-2018

    It's looking for a file that doesn't exist. The error is pointing towards line 17 of /etc/nginx/modsecurity/modsecurity.conf trying to include the file `/etc/nginx/modsecurity/unicode.mapping`. The file should be there and I'm not 100% sure how it's missing, but you can find it again in the Github repo.

Looking For Team Training?

Learn More