Re: nginx how to run first site as open , and second as basic auth .

2014-12-26 Thread Alexandr Borisenko
> 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.

nginx how to run first site as open , and second as basic auth .

2014-12-26 Thread Tuyosi Takesima
hi,all . i use name based virtual host (=server block). 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 . it is easy to run only name based virtualhost (=server block) . nginx.conf is ne