From e18b0437454ae3b78101a1839146e4027b08e89b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 18 Nov 2025 22:39:57 +0100 Subject: [PATCH] WIP:fpm --- nginx.conf | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/nginx.conf b/nginx.conf index 8175e3c3..0392adc3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -52,23 +52,12 @@ server { index index.php; - location / { - try_files $uri $uri/ /index.php?$args; - } - rewrite /wp-admin$ $scheme://$host$uri/ permanent; - location ~ [^/]\.php(/|$) { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - if (!-f $document_root$fastcgi_script_name) { - return 404; - } - + location ~ \.php$ { + try_files $uri =404 include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; - fastcgi_pass wordpress:9000; fastcgi_index index.php; } -- 2.39.5