Created
November 14, 2017 17:53
-
-
Save zimmerle/a5574df6a76e8b5a7d625c36225dc9b4 to your computer and use it in GitHub Desktop.
Nginx configuration example #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http { | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| error_page 404 /40x.html; | |
| location = /40x.html { | |
| root /srv/http; | |
| internal; | |
| } | |
| location / { | |
| root html; | |
| index index.html index.htm; | |
| modsecurity on; | |
| modsecurity_rules ' | |
| SecRuleEngine On | |
| SecAuditEngine On | |
| SecAuditLogParts ABIJDEFHZ | |
| SecAuditLogType Serial | |
| SecAuditLog /usr/local/nginx/logs/modsec_audit.log | |
| SecDebugLog "/tmp/debug_log.txt" | |
| SecDebugLogLevel 9 | |
| SecRule ARGS "test" "log,id:1,block,deny,status:505" | |
| '; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment