summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBOA Dev Team2019-01-09 16:20:08 (GMT)
committerBOA Dev Team2019-01-09 16:20:08 (GMT)
commitb89d02d43b2dd47ea6941666c1f20f98e3e2b24a (patch)
tree6194fe15b2033261a20f96ce42de6ea136541b07
parent2e765c67229b751714e11b6dfede9c2d9dc7e8c0 (diff)
Nginx: Fix spacing
-rw-r--r--http/Provision/Config/Nginx/Inc/vhost_include.tpl.php42
1 files changed, 21 insertions, 21 deletions
diff --git a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
index c6763c2..a45ab5d 100644
--- a/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
+++ b/http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
@@ -332,7 +332,7 @@ location ^~ /cron/ {
###
location ^~ /search {
location ~* ^/search {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
try_files $uri @drupal;
@@ -344,7 +344,7 @@ location ^~ /search {
###
location ^~ /js/ {
location ~* ^/js/ {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
rewrite ^/(.*)$ /js.php?q=$1 last;
@@ -378,7 +378,7 @@ location ^~ /hosting/c/server_master {
if ($cache_uid = '') {
return 403;
}
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -394,7 +394,7 @@ location ^~ /hosting/c/server_localhost {
if ($cache_uid = '') {
return 403;
}
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -406,7 +406,7 @@ location ^~ /hosting/c/server_localhost {
### Fix for #2005116
###
location ^~ /hosting/sites {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -418,7 +418,7 @@ location ^~ /hosting/sites {
### Fix for Aegir & .info .pl domain extensions.
###
location ^~ /hosting {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -448,7 +448,7 @@ location ^~ /admin/config/development/performance/redis {
### Support for backup_migrate module download/restore/delete actions.
###
location ^~ /admin {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -460,7 +460,7 @@ location ^~ /admin {
### Avoid caching /civicrm* and protect it from bots.
###
location ^~ /civicrm {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -485,7 +485,7 @@ location ~* ^/\w\w/civicrm {
###
location ^~ /audio/download {
location ~* ^/audio/download/.*/.*\.(?:mp3|mp4|m4a|ogg)$ {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
tcp_nopush off;
@@ -542,7 +542,7 @@ location ~* (?:cgi-bin|vti-bin) {
### Deny bots on some weak modules uri.
###
location ~* (?:validation|aggregator|vote_up_down|captcha|vbulletin|glossary/) {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -670,7 +670,7 @@ include <?php print $aegir_root; ?>/config/server_master/nginx/post.d/nginx_vhos
### Note: this location doesn't work with X-Accel-Redirect.
###
location ~* ^/sites/.*/files/private/ {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -687,7 +687,7 @@ location ~* ^/sites/.*/files/private/ {
location ~* ^/sites/.*/private/ {
internal;
<?php if ($nginx_config_mode == 'extended'): ?>
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
<?php endif; ?>
@@ -701,7 +701,7 @@ location ~* ^/sites/.*/private/ {
###
location ~* /files/private/ {
internal;
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -1046,7 +1046,7 @@ location ~* /(?:modules|libraries)/(?:contrib/)?(?:ad|tinybrowser|f?ckeditor|tin
tcp_nopush off;
keepalive_requests 0;
access_log off;
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
try_files $uri =404;
@@ -1063,7 +1063,7 @@ location ~* /(?:modules|libraries)/(?:contrib/)?(?:ad|tinybrowser|f?ckeditor|tin
### Deny crawlers and never cache known AJAX requests.
###
location ~* /(?:ahah|ajax|batch|autocomplete|done|progress/|x-progress-id|js/.*) {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -1080,7 +1080,7 @@ location ~* /(?:ahah|ajax|batch|autocomplete|done|progress/|x-progress-id|js/.*)
### Serve & no-log static helper files used in some wysiwyg editors.
###
location ~* ^/sites/.*/(?:modules|libraries)/(?:contrib/)?(?:tinybrowser|f?ckeditor|tinymce|flowplayer|jwplayer|videomanager)/.*\.(?:html?|xml)$ {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -1137,7 +1137,7 @@ location ~* \.xml$ {
### Deny bots on never cached uri.
###
location ~* ^/(?:.*/)?(?:admin|user|cart|checkout|logout|comment/reply) {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -1149,7 +1149,7 @@ location ~* ^/(?:.*/)?(?:admin|user|cart|checkout|logout|comment/reply) {
### Protect from DoS attempts on never cached uri.
###
location ~* ^/(?:.*/)?(?:node/[0-9]+/edit|node/add) {
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -1164,7 +1164,7 @@ location ~* ^/(?:.*/)?(?:node/[0-9]+/delete|approve) {
if ($cache_uid = '') {
return 403;
}
- if ($is_bot) {
+ if ( $is_bot ) {
return 403;
}
access_log off;
@@ -1341,7 +1341,7 @@ location @drupal {
<?php if ($nginx_config_mode == 'extended'): ?>
###
### Special location for Drupal 7+.
- ###
+###
location @modern {
try_files $uri /index.php?$query_string;
}
@@ -1416,7 +1416,7 @@ location ~* ^/(?:index|cron|boost_stats|update|authorize|xmlrpc)\.php$ {
<?php endif; ?>
<?php if ($satellite_mode == 'boa'): ?>
limit_conn limreq 88;
- if ($is_bot) {
+ if ( $is_bot ) {
return 404;
}
<?php endif; ?>