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