logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: 756c9c58993b7af0a3615ff52f4c10fb65173968
parent ea0688f50959e2a63a9f6f1d771f273a71b722c8
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:

Mnginx_autoindex.xsl.in4++--
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;