Directive only for certain alias
Igor Sysoev
igor at sysoev.ru
Wed Aug 31 14:03:11 UTC 2011
On Wed, Aug 31, 2011 at 09:58:40AM -0400, cicovy wrote:
> I just found out that it's not possible to add ssl_verify_client
> directive in a "location". I received a suggestion from @kolbyjack on
> the nginx IRC channel which helped me with this problem. The solution
> was to deal with the $ssl_verify_client returning value.
>
> if ($ssl_client_verify != SUCCESS) {
> return 401;
> break;
> }
Yes, you can set "ssl_verify_client optional" on server level and then
test $ssl_client_verify inside location.
The "break" directive is useless here.
--
Igor Sysoev
More information about the nginx
mailing list