From ed266f9848ed68d23389653279f867750236f095 Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 9 Oct 2025 22:35:37 -0700 Subject: [PATCH] Update nginx/wordpress --- nginx/wordpress | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/wordpress b/nginx/wordpress index 7633385..a34372b 100644 --- a/nginx/wordpress +++ b/nginx/wordpress @@ -5,9 +5,15 @@ server { root /var/www/example.com/web; index index.php index.htm index.html; + location / { + try_files $uri $uri/ /index.php?$args; + } + location ~ \.php$ { include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php8.4-fpm.sock; + fastcgi_pass unix:/var/run/php/php8.4-fpm.sock; # Adjust PHP version as needed + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; } # Prevent PHP scripts from being executed inside the uploads folder.