aboutsummaryrefslogtreecommitdiffhomepage
path: root/.docker
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-21 15:23:30 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-21 15:23:30 +0200
commit2f87bfdc69052cd64e84b1d2b97a0af14991a385 (patch)
tree99fa3d8862a79148abd18203c6cc45175b356b3a /.docker
parentd8030c8155ee4c20573848b2444f6df0b65d1662 (diff)
downloadShaarli-2f87bfdc69052cd64e84b1d2b97a0af14991a385.tar.gz
Shaarli-2f87bfdc69052cd64e84b1d2b97a0af14991a385.tar.zst
Shaarli-2f87bfdc69052cd64e84b1d2b97a0af14991a385.zip
Fix: nginx - add rule to disable url-rewriting for the docs
Related to #1603
Diffstat (limited to '.docker')
-rw-r--r--.docker/nginx.conf7
1 files changed, 6 insertions, 1 deletions
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 {
29 log_not_found off; 29 log_not_found off;
30 deny all; 30 deny all;
31 } 31 }
32 32
33 location ~ ~$ { 33 location ~ ~$ {
34 # deny access to temp editor files, e.g. "script.php~" 34 # deny access to temp editor files, e.g. "script.php~"
35 access_log off; 35 access_log off;
@@ -65,6 +65,11 @@ http {
65 include fastcgi.conf; 65 include fastcgi.conf;
66 } 66 }
67 67
68 location ~ /doc/ {
69 default_type "text/html";
70 try_files $uri $uri/ $uri.html =404;
71 }
72
68 location ~ \.php$ { 73 location ~ \.php$ {
69 # deny access to all other PHP scripts 74 # deny access to all other PHP scripts
70 deny all; 75 deny all;