2012-07-22 23:31:54 +02:00
|
|
|
# Prevent clients from accessing hidden files (starting with a dot)
|
2013-02-24 22:16:13 +01:00
|
|
|
# This is particularly important if you store .htpasswd files in the site hierarchy
|
2013-02-24 21:40:13 +01:00
|
|
|
location ~* (?:^|/)\. {
|
2013-02-24 21:41:51 +01:00
|
|
|
deny all;
|
2012-07-22 23:31:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Prevent clients from accessing to backup/config/source files
|
2013-02-24 21:40:13 +01:00
|
|
|
location ~* (?:\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
|
2013-02-24 21:41:51 +01:00
|
|
|
deny all;
|
2012-07-22 23:31:54 +02:00
|
|
|
}
|