diff --git a/pillar/role/web_jekyll.sls b/pillar/role/web_jekyll.sls index 4176328..b2bffed 100644 --- a/pillar/role/web_jekyll.sls +++ b/pillar/role/web_jekyll.sls @@ -36,6 +36,10 @@ nginx: - application/x-javascript - application/javascript - expires: $expires + - location ~ /\.svn: + - return 404 + - location ~ /\.git: + - return 404 - location /: - index: - index.html diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 4ae6291..293dd72 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -36,6 +36,10 @@ nginx: - application/x-javascript - application/javascript - expires: $expires + - location ~ /\.svn: + - return 404 + - location ~ /\.git: + - return 404 - location /: - index: - index.html