From 1c0b72c1e7a4ff7a52def03046ebd2609fa24bcf Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 22 Nov 2021 23:06:30 +0100 Subject: [PATCH] module(wp): add index --- modules/web-apps/wordpress/module.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web-apps/wordpress/module.nix b/modules/web-apps/wordpress/module.nix index 4bb5d7f..58f1b4f 100644 --- a/modules/web-apps/wordpress/module.nix +++ b/modules/web-apps/wordpress/module.nix @@ -60,13 +60,14 @@ in { ] ++ optional cfg.enablePageSpeed pagespeed; virtualHosts."${cfg.domain}" = { root = app.package; - index = "index.html index.htm index.php;"; locations."/" = { tryFiles = "$uri/index.html $uri $uri/ /index.php?$query_string;"; }; # fast cgi conf locations."~ [^/]\\.php(/|$)" = { extraConfig = '' + index index.html index.htm index.php; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:${phpFpmListen}; fastcgi_index index.php;