mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
tests: nginx: Allow POSTs in static files
By default Nginx does not allow POST in static files, which is very used by the regression test. This is a ugly hack just to make possible to gather some numbers. Better solution will arrive soon.
This commit is contained in:
@@ -15,6 +15,7 @@ http {
|
|||||||
listen [% listen %];
|
listen [% listen %];
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
location / {
|
location / {
|
||||||
|
error_page 405 = $uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user