From 226db1f46ee28cd339a824f19f894935abad78e6 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 16 Jun 2026 15:54:22 +0900 Subject: [PATCH] temmie/userweb: add more `DirectoryIndex` variants --- hosts/temmie/services/userweb/httpd.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/hosts/temmie/services/userweb/httpd.nix b/hosts/temmie/services/userweb/httpd.nix index 6b117de..9f70a51 100644 --- a/hosts/temmie/services/userweb/httpd.nix +++ b/hosts/temmie/services/userweb/httpd.nix @@ -78,10 +78,32 @@ in ScriptLog "${cfg.logDir}/cgi.log" UserDir ${lib.concatMapStringsSep " " (l: "/home/pvv/${l}/*/web-docs") mcfg.homeLetters} + UserDir disabled root UserDir disabled pvv + AddHandler cgi-script .cgi - DirectoryIndex index.html index.html.var index.php index.php3 index.cgi index.phtml index.shtml meg.html + + DirectoryIndex ${lib.concatStringsSep " " [ + "index.htm" + "index.html" + "index.html.var" + + "index.shtml" + "index.xhtml" + + "index.php" + "index.php3" + "index.php4" + "index.pht" + "index.phtml" + + "index.cgi" + "index.txt" + + "meg.html" + ]} + SetEnvIf Request_URI "^/~([^/]+)" USERDIR_USER=$1