Skip to content

Commit a4b8980

Browse files
committed
bloquear acesso ao .env no webservice
1 parent fe5e8d2 commit a4b8980

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

default.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ server {
4141
fastcgi_pass 127.0.0.1:9000;
4242
}
4343

44+
location = /.env {
45+
deny all;
46+
return 404;
47+
}
48+
4449
location ~ /\.ht {
4550
deny all;
4651
}

0 commit comments

Comments
 (0)