]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - doc/md/Server-configuration.md
Fix: nginx - add rule to disable url-rewriting for the docs
[github/shaarli/Shaarli.git] / doc / md / Server-configuration.md
index 8cb39934603c35aaa4b4b8ebb42fb6305052fab1..4e74d80bb28d92f4899eda3fda1610967e2bd1a5 100644 (file)
@@ -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;