summaryrefslogtreecommitdiffstats
path: root/http/Provision/Config/Nginx/subdir.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'http/Provision/Config/Nginx/subdir.tpl.php')
-rw-r--r--http/Provision/Config/Nginx/subdir.tpl.php31
1 files changed, 24 insertions, 7 deletions
diff --git a/http/Provision/Config/Nginx/subdir.tpl.php b/http/Provision/Config/Nginx/subdir.tpl.php
index d53bb06..e912d7d 100644
--- a/http/Provision/Config/Nginx/subdir.tpl.php
+++ b/http/Provision/Config/Nginx/subdir.tpl.php
@@ -56,6 +56,13 @@ location ^~ /<?php print $subdir; ?> {
}
###
+ ### Block semalt botnet.
+ ###
+ if ($is_botnet) {
+ return 403;
+ }
+
+ ###
### Include high load protection config if exists.
###
include /data/conf/nginx_high_load.c*;
@@ -189,7 +196,9 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
deny all;
<?php endif; ?>
try_files /cron.php $uri =404;
-<?php if ($phpfpm_mode == 'port'): ?>
+<?php if ($satellite_mode == 'boa'): ?>
+ fastcgi_pass unix:/var/run/www53.fpm.socket;
+<?php elseif ($phpfpm_mode == 'port'): ?>
fastcgi_pass 127.0.0.1:9000;
<?php else: ?>
fastcgi_pass unix:/var/run/php5-fpm.sock;
@@ -565,7 +574,9 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
return 403;
}
try_files /$1 $uri =404;
-<?php if ($phpfpm_mode == 'port'): ?>
+<?php if ($satellite_mode == 'boa'): ?>
+ fastcgi_pass unix:/var/run/www53.fpm.socket;
+<?php elseif ($phpfpm_mode == 'port'): ?>
fastcgi_pass 127.0.0.1:9000;
<?php else: ?>
fastcgi_pass unix:/var/run/php5-fpm.sock;
@@ -745,10 +756,12 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
keepalive_requests 0;
access_log off;
try_files /$1.php =404; ### check for existence of php file first
-<?php if ($phpfpm_mode == 'port'): ?>
- fastcgi_pass 127.0.0.1:9000;
+<?php if ($satellite_mode == 'boa'): ?>
+ fastcgi_pass unix:/var/run/www53.fpm.socket;
+<?php elseif ($phpfpm_mode == 'port'): ?>
+ fastcgi_pass 127.0.0.1:9000;
<?php else: ?>
- fastcgi_pass unix:/var/run/php5-fpm.sock;
+ fastcgi_pass unix:/var/run/php5-fpm.sock;
<?php endif; ?>
}
@@ -818,7 +831,9 @@ location ^~ /<?php print $subdir; ?>/cdn/farfuture/ {
tcp_nopush off;
keepalive_requests 0;
try_files /index.php =404; ### check for existence of php file first
-<?php if ($phpfpm_mode == 'port'): ?>
+<?php if ($satellite_mode == 'boa'): ?>
+ fastcgi_pass unix:/var/run/www53.fpm.socket;
+<?php elseif ($phpfpm_mode == 'port'): ?>
fastcgi_pass 127.0.0.1:9000;
<?php else: ?>
fastcgi_pass unix:/var/run/php5-fpm.sock;
@@ -959,7 +974,9 @@ location @allowupdate_<?php print $subdir; ?> {
access_log off;
try_files /$real_fastcgi_script_name =404; ### check for existence of php file first
-<?php if ($phpfpm_mode == 'port'): ?>
+<?php if ($satellite_mode == 'boa'): ?>
+ fastcgi_pass unix:/var/run/www53.fpm.socket;
+<?php elseif ($phpfpm_mode == 'port'): ?>
fastcgi_pass 127.0.0.1:9000;
<?php else: ?>
fastcgi_pass unix:/var/run/php5-fpm.sock;