From 2f87bfdc69052cd64e84b1d2b97a0af14991a385 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 21 Oct 2020 15:23:30 +0200 Subject: Fix: nginx - add rule to disable url-rewriting for the docs Related to #1603 --- doc/md/Server-configuration.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/md/Server-configuration.md b/doc/md/Server-configuration.md index 8cb39934..4e74d80b 100644 --- a/doc/md/Server-configuration.md +++ b/doc/md/Server-configuration.md @@ -325,6 +325,11 @@ server { deny all; } + location ~ /doc/ { + default_type "text/html"; + try_files $uri $uri/ $uri.html =404; + } + location = /favicon.ico { # serve the Shaarli favicon from its custom location alias /var/www/shaarli/images/favicon.ico; -- cgit v1.2.3