> i want to run first site as open and second site as ristricted (basic auth), > but it is hard to do and there is little information on internet about this
Just add
auth_basic "Test site";
auth_basic_user_file .htpasswd;
to second server { ... } block.

