From f7bdbcd297f4d57628a1a54880e530d77560ffa1 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sat, 14 Jan 2017 04:08:03 +0000 Subject: [PATCH] add some location directives for dokuwiki --- ubuntu/site.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubuntu/site.yml b/ubuntu/site.yml index 6146f07..7d34802 100644 --- a/ubuntu/site.yml +++ b/ubuntu/site.yml @@ -168,6 +168,9 @@ - ssl_stapling on - resolver 8.8.8.8 valid=300s - add_header Strict-Transport-Security max-age=31536000 + - location ~ /(data|conf|bin|inc)/ { + deny all; + } - location / { try_files $uri $uri/ /index.php?$args; }