Commit 483a048a authored by omega8cc's avatar omega8cc

Issue #2667210 by bgm -- Nginx: Use $args sec filtering only in the extended config

parent 9fa4808e
......@@ -68,12 +68,14 @@ if ( $request_method !~ ^(?:GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
return 403;
}
<?php if ($nginx_config_mode == 'extended'): ?>
###
### Deny listed requests for security reasons.
###
if ($is_denied) {
return 403;
}
<?php endif; ?>
<?php if ($satellite_mode == 'boa'): ?>
###
......
......@@ -136,12 +136,14 @@ location ^~ /<?php print $subdir; ?> {
return 403;
}
<?php if ($nginx_config_mode == 'extended'): ?>
###
### Deny listed requests for security reasons.
###
if ($is_denied) {
return 403;
}
<?php endif; ?>
###
### HTTPRL standard support.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment