aboutsummaryrefslogtreecommitdiffstats
path: root/.ht-nginx
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-17 19:59:38 +0200
committerThomas Lange <code@nerdmind.de>2021-06-17 19:59:38 +0200
commit51a0d16b53abe970acf1918dfffcaa225a65db3a (patch)
treeb97a4abc8c1e2b750ff5e3fbd84fe458585f3385 /.ht-nginx
parent1bc0e9f154138354864d243aa559854c5e5eb71c (diff)
downloadblog-51a0d16b53abe970acf1918dfffcaa225a65db3a.tar.gz
blog-51a0d16b53abe970acf1918dfffcaa225a65db3a.tar.xz
blog-51a0d16b53abe970acf1918dfffcaa225a65db3a.zip
Add .git to forbidden directories
Diffstat (limited to '.ht-nginx')
-rw-r--r--.ht-nginx2
1 files changed, 1 insertions, 1 deletions
diff --git a/.ht-nginx b/.ht-nginx
index ff6b459..6b97cb8 100644
--- a/.ht-nginx
+++ b/.ht-nginx
@@ -18,7 +18,7 @@ error_page 404 /404.php;
#===============================================================================
# Forbidden directories
#===============================================================================
-location ~ ^/(core|theme/([^/]+)/(html|lang)/) {
+location ~ ^/(.git|core|theme/([^/]+)/(html|lang)/) {
return 403;
}