Permalink
Browse files

Nginx: Deny all hidden files that starts with a '.'

  • Loading branch information...
andygrunwald committed May 20, 2017
1 parent 5719973 commit 73831849ad05bef4b12405ed52d52f9d57128082
Showing with 7 additions and 0 deletions.
  1. +7 −0 .docker/nginx-development.conf
@@ -6,6 +6,13 @@ server {
access_log /var/log/nginx/access.log;
root /code;
# Deny all hidden files that starts with a '.'
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;

0 comments on commit 7383184

Please sign in to comment.