最近,我一登录到仪表板上,就会看到这个屏幕。

我怎么才能防止这件事?
我在我的Nginx上使用CloudFlare。
我以前使用Fail2Ban,但禁用了。
[nginx-req-limit]
enabled = false
filter = nginx-req-limit
action = iptables-multiport[name=ReqLimit, port="http,https", protocol=tcp]
jdoeddos
logpath = /var/log/nginx/default-error.log
findtime = 10
bantime = 7200
maxretry = 20Nginx
#limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
server {
listen 80 default_server;
server_name jdoe.com www.jdoe.com;
root /home/forge/jdoe/public;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
location / {
#limit_req zone=one burst=2 nodelay;
try_files $uri $uri/ /index.php?$query_string;
add_header 'Access-Control-Allow-Origin' '*';
}
location ~ \.php$ {
#limit_req zone=one burst=2 nodelay;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
access_log off;
error_log /var/log/nginx/default-error.log error;
error_page 404 /index.php;
location ~ /\.ht {
deny all;
}
}有什么设置我需要关闭吗?
发布于 2019-10-22 09:07:22
改变这个
location ~ \.php$ {
#limit_req zone=one burst=2 nodelay;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}至
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}https://stackoverflow.com/questions/58422521
复制相似问题