mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 02:59:57 +00:00
ADD Nginx Mainstream Test (Step 16)
This commit is contained in:
parent
8ac07bb561
commit
d6ccb7c7a4
3 changed files with 23 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
||||||
server {
|
server {
|
||||||
# Bad Bot Blocker
|
listen *:9000;
|
||||||
include /etc/nginx/bots.d/ddos.conf;
|
|
||||||
include /etc/nginx/bots.d/blockbots.conf;
|
|
||||||
|
|
||||||
listen *:9000;
|
|
||||||
|
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
charset UTF-8;
|
charset UTF-8;
|
||||||
|
|
||||||
|
# Bad Bot Blocker
|
||||||
|
include /etc/nginx/bots.d/ddos.conf;
|
||||||
|
include /etc/nginx/bots.d/blockbots.conf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/html/;
|
root /var/www/html/;
|
||||||
}
|
}
|
||||||
|
|
15
.dev-tools/default13.vhost
Normal file
15
.dev-tools/default13.vhost
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
server {
|
||||||
|
listen *:9000;
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
server_name localhost;
|
||||||
|
charset UTF-8;
|
||||||
|
|
||||||
|
# Bad Bot Blocker
|
||||||
|
include /etc/nginx/bots.d/ddos.conf;
|
||||||
|
include /etc/nginx/bots.d/blockbots.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /var/www/html/;
|
||||||
|
}
|
||||||
|
}
|
|
@ -283,6 +283,9 @@ sudo bash ./setup-ngxblocker -x
|
||||||
printf '\n%s\n%s\n%s\n\n' "########################" "Force Reloading of Nginx" "########################"
|
printf '\n%s\n%s\n%s\n\n' "########################" "Force Reloading of Nginx" "########################"
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
||||||
|
sudo cp $TRAVIS_BUILD_DIR/.dev-tools/default13.vhost /etc/nginx/sites-available/default.vhost
|
||||||
|
sudo service nginx reload
|
||||||
|
|
||||||
# **********************
|
# **********************
|
||||||
# Now Run our Curl Tests
|
# Now Run our Curl Tests
|
||||||
# **********************
|
# **********************
|
||||||
|
|
Loading…
Add table
Reference in a new issue