changeset 2126:c9b474306066 default tip

add previous fix to the default http block
author Violet7
date Wed, 14 Jan 2026 14:18:51 -0800
parents dd676a2b48cf
children
files host/startup/nginx/nginx.conf.luan
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r dd676a2b48cf -r c9b474306066 host/startup/nginx/nginx.conf.luan
--- a/host/startup/nginx/nginx.conf.luan	Tue Jan 13 13:40:46 2026 -0800
+++ b/host/startup/nginx/nginx.conf.luan	Wed Jan 14 14:18:51 2026 -0800
@@ -30,7 +30,7 @@
 			# $host/ssl does not exist for non-ssl sites and requests to here
 			# will fail with 404 for those sites, which is what we want
 			alias <%=rootDir%>/sites/$host/ssl/acme-challenge/;
-			autoindex on;
+			try_files $uri $uri/ =404;
 		}
 	}