Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
provision
Commits
483a048a
Commit
483a048a
authored
Feb 15, 2016
by
omega8cc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2667210
by bgm -- Nginx: Use $args sec filtering only in the extended config
parent
9fa4808e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
+2
-0
http/Provision/Config/Nginx/subdir.tpl.php
http/Provision/Config/Nginx/subdir.tpl.php
+2
-0
No files found.
http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
View file @
483a048a
...
@@ -68,12 +68,14 @@ if ( $request_method !~ ^(?:GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
...
@@ -68,12 +68,14 @@ if ( $request_method !~ ^(?:GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
return 403;
return 403;
}
}
<?php
if
(
$nginx_config_mode
==
'extended'
)
:
?>
###
###
### Deny listed requests for security reasons.
### Deny listed requests for security reasons.
###
###
if ($is_denied) {
if ($is_denied) {
return 403;
return 403;
}
}
<?php
endif
;
?>
<?php
if
(
$satellite_mode
==
'boa'
)
:
?>
<?php
if
(
$satellite_mode
==
'boa'
)
:
?>
###
###
...
...
http/Provision/Config/Nginx/subdir.tpl.php
View file @
483a048a
...
@@ -136,12 +136,14 @@ location ^~ /<?php print $subdir; ?> {
...
@@ -136,12 +136,14 @@ location ^~ /<?php print $subdir; ?> {
return 403;
return 403;
}
}
<?php
if
(
$nginx_config_mode
==
'extended'
)
:
?>
###
###
### Deny listed requests for security reasons.
### Deny listed requests for security reasons.
###
###
if ($is_denied) {
if ($is_denied) {
return 403;
return 403;
}
}
<?php
endif
;
?>
###
###
### HTTPRL standard support.
### HTTPRL standard support.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment