commit: 4f61920bca7e597310e1f1687e34123e5a9f177c
parent 35bbf8129c2d9353a62d0d0c7d7253b9c488cb59
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 7 Apr 2023 16:08:55 +0200
nginx_autoindex.xsl.in: Fix nginx config snippet
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nginx_autoindex.xsl.in b/nginx_autoindex.xsl.in
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0" xml:space="preserve" xmlns:str="http://exslt.org/strings" exclude-result-prefixes="str">
<!--
- try_files $uri … @autoindex =404;
+ # Do not put $uri/
+ try_files $uri $uri/index.html @autoindex;
- error_page 403 = @autoindex;
location @autoindex {
autoindex on;
autoindex_format xml;