module(wp): add index
This commit is contained in:
parent
1402072fd0
commit
1c0b72c1e7
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue