Browse Source

location

main
Sergio Álvarez 3 weeks ago
parent
commit
ab1fe0f5f6
  1. 6
      docker/nginx/default.conf

6
docker/nginx/default.conf

@ -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;
}
}

Loading…
Cancel
Save