37 lines
817 B
Plaintext
37 lines
817 B
Plaintext
master_process off;
|
|
worker_processes 1;
|
|
load_module /tmp/naxsi_ut/modules/ngx_http_naxsi_module.so;
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
http {
|
|
include /tmp/naxsi_ut/naxsi_core.rules;
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
server {
|
|
listen 4242;
|
|
server_name localhost;
|
|
location / {
|
|
LearningMode;
|
|
SecRulesEnabled;
|
|
DeniedUrl "/50x.html";
|
|
CheckRule "$SQL >= 8" BLOCK;
|
|
CheckRule "$RFI >= 8" BLOCK;
|
|
CheckRule "$TRAVERSAL >= 4" BLOCK;
|
|
CheckRule "$EVADE >= 4" BLOCK;
|
|
CheckRule "$XSS >= 8" BLOCK;
|
|
error_log /tmp/ngx_error.log debug;
|
|
access_log /tmp/ngx_access.log;
|
|
root html;
|
|
index index.html index.htm;
|
|
}
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root html;
|
|
}
|
|
}
|
|
}
|
|
|