Here is solution for Nginx with PHP-FPM
location /subfilder/ {
index index.php;
auth_basic "Unauthorized";
auth_basic_user_file /home/user/.dashauth;
}
But it doesn't work right with Apache + Nginx Reverse Proxy
login works, but it offers to download php file...
I'm missing something