From a89d5e1292b867e724902b995d129bd2957076fc Mon Sep 17 00:00:00 2001 From: mohammad jalmoudy Date: Sat, 13 Dec 2025 23:50:55 +0330 Subject: [PATCH] add nginx default config file to use inside its composer --- docker/nginx/default.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docker/nginx/default.conf diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf new file mode 100644 index 0000000..27d7549 --- /dev/null +++ b/docker/nginx/default.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name localhost; + + root /var/www/html/src; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + fastcgi_pass php:9000; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +}