X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.docker%2Fnginx.conf;h=023f52c1d1be5f8502c0aad2567a054b7216eb05;hb=2f87bfdc69052cd64e84b1d2b97a0af14991a385;hp=07fba33fec11bcbf90741c086586550a0b86c57c;hpb=d8030c8155ee4c20573848b2444f6df0b65d1662;p=github%2Fshaarli%2FShaarli.git diff --git a/.docker/nginx.conf b/.docker/nginx.conf index 07fba33f..023f52c1 100644 --- a/.docker/nginx.conf +++ b/.docker/nginx.conf @@ -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;