]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - .docker/nginx.conf
Fix: nginx - add rule to disable url-rewriting for the docs
[github/shaarli/Shaarli.git] / .docker / nginx.conf
index 07fba33fec11bcbf90741c086586550a0b86c57c..023f52c1d1be5f8502c0aad2567a054b7216eb05 100644 (file)
@@ -29,7 +29,7 @@ http {
             log_not_found off;
             deny all;
         }
-        
+
         location ~ ~$ {
             # deny access to temp editor files, e.g. "script.php~"
             access_log off;
@@ -65,6 +65,11 @@ http {
             include        fastcgi.conf;
         }
 
+        location ~ /doc/ {
+            default_type "text/html";
+            try_files $uri $uri/ $uri.html =404;
+        }
+
         location ~ \.php$ {
             # deny access to all other PHP scripts
             deny all;