From e26b2c1ebe1b66ac6bd0e80b2bbd9feae40737b6 Mon Sep 17 00:00:00 2001 From: quitte Date: Sun, 17 Sep 2023 14:28:13 +0200 Subject: [PATCH] userdir: fix 403 --- modules/userdir.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/userdir.nix b/modules/userdir.nix index fa0aad8..a0d9322 100644 --- a/modules/userdir.nix +++ b/modules/userdir.nix @@ -29,10 +29,17 @@ in virtualHosts.${domain} = { enableUserDir = true; extraConfig = '' + UserDir /home/users/*/public_html - Options -Indexes + Options -Indexes +MultiViews +SymLinksIfOwnerMatch +IncludesNoExec DirectoryIndex index.php index.html AllowOverride FileInfo AuthConfig Limit Indexes Options=Indexes + + Require all granted + + + Require all denied + ''; listen = [{