This commit is contained in:
Sergio Álvarez 2021-11-17 12:53:59 +01:00
parent 1545185b4b
commit ab1fe0f5f6
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
limit_req_zone $binary_remote_addr zone=rlimit:10m rate=10r/s;
limit_req_zone $binary_remote_addr zone=rlimit:10m rate=5r/s;
server {
index index.html index.php;
@ -8,8 +8,6 @@ server {
access_log /var/log/nginx/access.log;
root /var/www/html/public;
limit_req zone=rlimit;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
@ -18,5 +16,7 @@ server {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
limit_req zone=rlimit;
}
}