From 9fe4ec5e5da9be2c8aa7663221a4720024274c56 Mon Sep 17 00:00:00 2001 From: franknstayn Date: Mon, 28 Aug 2023 03:06:59 +0800 Subject: [PATCH] updated --- default.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 default.conf diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..cb7d259 --- /dev/null +++ b/default.conf @@ -0,0 +1,19 @@ +server { + listen 80; + server_name localhost; + + root /var/www/html/public; + + index index.php; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + fastcgi_pass php-fpm:9000; # Use the service name + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +} \ No newline at end of file