From c334f89aba6cea16d61c87ede175ff4af42c980e Mon Sep 17 00:00:00 2001 From: David D'ALMEIDA Date: Wed, 21 Feb 2024 12:21:14 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Sources/config/ngi?= =?UTF-8?q?nx.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/config/nginx.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/config/nginx.conf b/Sources/config/nginx.conf index e69e6bb0..c3b3b604 100755 --- a/Sources/config/nginx.conf +++ b/Sources/config/nginx.conf @@ -9,13 +9,18 @@ server { } location ~ \.php$ { - fastcgi_pass web:9000; # service name defined in docker-compose.yml file like web fastcgi_param REQUEST_METHOD $request_method; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } + location ~ /\. { + deny all; + access_log off; + log_not_found off; + } + location / { try_files $uri $uri/ /index.php?$query_string; }