mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-15 01:29:49 +00:00
V4.2019.07.1781 [ci skip]
This commit is contained in:
parent
42d71c94d7
commit
0e8e1521e3
52 changed files with 1117 additions and 1104 deletions
|
@ -2,6 +2,10 @@ server {
|
|||
listen 8080;
|
||||
server_name xxxx;
|
||||
|
||||
### NGINX BOT BLOCKER INCLUDE
|
||||
include /etc/nginx/bots.d/blockbots.conf;
|
||||
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
@ -10,6 +14,10 @@ server {
|
|||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name xxxxx
|
||||
|
||||
### NGINX BOT BLOCKER INCLUDE
|
||||
include /etc/nginx/bots.d/blockbots.conf;
|
||||
|
||||
root {{ vhost_www_directory }}/sites/public;
|
||||
|
||||
include {{ nginx_blockbots_cfg_path }};
|
||||
|
@ -26,6 +34,10 @@ server {
|
|||
root {{ vhost_www_directory }}/admin/public;
|
||||
server_name admin.{{ domain_to_protect }};
|
||||
|
||||
### NGINX BOT BLOCKER INCLUDE
|
||||
include /etc/nginx/bots.d/blockbots.conf;
|
||||
|
||||
|
||||
include {{ nginx_yprox_security_path }};
|
||||
include {{ nginx_yprox_ssl_path }};
|
||||
|
||||
|
@ -40,6 +52,10 @@ server {
|
|||
listen 443 ssl http2;
|
||||
server_name alp.{{ domain_to_protect }};
|
||||
|
||||
### NGINX BOT BLOCKER INCLUDE
|
||||
include /etc/nginx/bots.d/blockbots.conf;
|
||||
|
||||
|
||||
root {{ alp_live_directory }};
|
||||
include {{ nginx_bots_cfg_path }}/blockbots.conf;
|
||||
index index.html;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue