From e9a277968fd6742a888ef98e21433fc352a31c43 Mon Sep 17 00:00:00 2001 From: Triono Putra Date: Wed, 28 May 2025 21:55:23 +0700 Subject: [PATCH] Update --- nginx/default.conf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nginx/default.conf b/nginx/default.conf index 79229c6..e38b280 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -2,7 +2,8 @@ server { listen 80; index index.php index.html; server_name siska.appstaging.my.id; - + + # Ensure this matches your actual document root root /var/www/public; location / { @@ -12,12 +13,12 @@ server { location ~ \.php$ { fastcgi_pass sistem-akademik-dev:9000; fastcgi_index index.php; - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; + include fastcgi_params; } location ~ /\.ht { deny all; } -} +} \ No newline at end of file