From 574da8a4d081d19fd7b8447dc616d43786ef5f51 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 2 Apr 2021 21:33:45 -0400 Subject: Get my static site working again --- Biz/Cloud/Web.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Biz/Cloud') diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index c364c22..74fc27e 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -12,8 +12,10 @@ in recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; + statusPage = true; - group = "users"; + user = "nginx"; + group = "www-data"; virtualHosts = { ${rootDomain} = { @@ -21,7 +23,7 @@ in # serve /~$USER paths locations."~ ^/~(.+?)(/.*)?$" = { - alias = "/home/$1/public_html$2"; + alias = "/www/$1/public$2"; index = "index.html index.htm"; extraConfig = '' autoindex on; @@ -33,7 +35,7 @@ in "bsima.me" = { locations."/" = { - root = "/home/ben/public_html/"; + root = "/www/ben/public"; index = "index.html index.htm"; extraConfig = '' autoindex on; -- cgit v1.2.3