Browse Source

deny access to config.ini

By default this file is accessible
Fyodor 2 years ago
parent
commit
7458733ccb
1 changed files with 6 additions and 0 deletions
  1. 6 0
      nginx-example.conf

+ 6 - 0
nginx-example.conf

@@ -37,9 +37,15 @@ server {
 	location ~ ^/app/(controller|dict|helper|model|view) {
 		deny all;
 	}
+	
 	location ~ /\.ht {
 		deny all;
 	}
+	
+	location ~ /config\.ini {
+		deny all;
+	}
+
 
 	client_max_body_size 64M;
 }