From cad08c22a900282525aab3295584c0ac2337cd03 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 19 Sep 2024 21:32:59 +0100 Subject: [PATCH] Remove homedir serving from default server --- ansible/roles/nginx/templates/default_server.conf | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ansible/roles/nginx/templates/default_server.conf b/ansible/roles/nginx/templates/default_server.conf index a22853df..27c3483c 100644 --- a/ansible/roles/nginx/templates/default_server.conf +++ b/ansible/roles/nginx/templates/default_server.conf @@ -28,9 +28,4 @@ server { return 302 $url; } - - location ~ ^/~(.+?)(/.*)?$ { - alias /home/$1/public$2; - autoindex on; - } }