Created
November 14, 2017 17:52
-
-
Save zimmerle/41ccae419386f5164cea95ac7f78e02b to your computer and use it in GitHub Desktop.
Nginx configuration example #1
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; | |
| location / { | |
| root html; | |
| index index.html index.htm; | |
| error_page 404 /40x.html; | |
| location = /40x.html { | |
| root /srv/http; | |
| internal; | |
| } | |
| 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