module(wp): add index

This commit is contained in:
Raito Bezarius 2021-11-22 23:06:30 +01:00
parent 1402072fd0
commit 1c0b72c1e7

View file

@ -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;