diff host/startup/nginx/nginx.conf.luan @ 2168:c26aca3d2f76 default tip

use try_files, again
author Violet7
date Sat, 14 Feb 2026 00:41:06 -0800
parents 484d2b42f2d1
children
line wrap: on
line diff
--- a/host/startup/nginx/nginx.conf.luan	Sun Feb 08 14:42:01 2026 -0800
+++ b/host/startup/nginx/nginx.conf.luan	Sat Feb 14 00:41:06 2026 -0800
@@ -31,7 +31,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;
 		}
 	}