mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 19:50:17 +00:00
[TESTS] sed / Multiple Vhosts Includes REF: #285
This commit is contained in:
parent
6a9cf5c2fb
commit
42d71c94d7
1 changed files with 0 additions and 12 deletions
|
@ -2,9 +2,6 @@ server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
server_name xxxx;
|
server_name xxxx;
|
||||||
|
|
||||||
include /etc/nginx/bots.d/blockbots.conf;
|
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
@ -13,9 +10,6 @@ include /etc/nginx/bots.d/blockbots.conf;
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name xxxxx
|
server_name xxxxx
|
||||||
|
|
||||||
include /etc/nginx/bots.d/blockbots.conf;
|
|
||||||
|
|
||||||
root {{ vhost_www_directory }}/sites/public;
|
root {{ vhost_www_directory }}/sites/public;
|
||||||
|
|
||||||
include {{ nginx_blockbots_cfg_path }};
|
include {{ nginx_blockbots_cfg_path }};
|
||||||
|
@ -32,9 +26,6 @@ server {
|
||||||
root {{ vhost_www_directory }}/admin/public;
|
root {{ vhost_www_directory }}/admin/public;
|
||||||
server_name admin.{{ domain_to_protect }};
|
server_name admin.{{ domain_to_protect }};
|
||||||
|
|
||||||
include /etc/nginx/bots.d/blockbots.conf;
|
|
||||||
|
|
||||||
|
|
||||||
include {{ nginx_yprox_security_path }};
|
include {{ nginx_yprox_security_path }};
|
||||||
include {{ nginx_yprox_ssl_path }};
|
include {{ nginx_yprox_ssl_path }};
|
||||||
|
|
||||||
|
@ -49,9 +40,6 @@ server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name alp.{{ domain_to_protect }};
|
server_name alp.{{ domain_to_protect }};
|
||||||
|
|
||||||
include /etc/nginx/bots.d/blockbots.conf;
|
|
||||||
|
|
||||||
|
|
||||||
root {{ alp_live_directory }};
|
root {{ alp_live_directory }};
|
||||||
include {{ nginx_bots_cfg_path }}/blockbots.conf;
|
include {{ nginx_bots_cfg_path }}/blockbots.conf;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
Loading…
Add table
Reference in a new issue