location / { try_files $uri $uri/ /index.php?$query_string; } location /.env { deny all; return 404; }