nginx-auth-ldap icon indicating copy to clipboard operation
nginx-auth-ldap copied to clipboard

put require in 'server' or 'location' directive

Open zoide opened this issue 8 years ago • 1 comments

It seems, that the 'require' option works only within a 'ldap_server' block.

Would it be possible to allow that directive in 'server', 'http', or a 'location' block?

This would enable nginx to have different require specs by vhost (lets say) without specifying a new 'ldap_server' block for each spec.

zoide avatar Dec 14 '16 12:12 zoide

I have this same issue. I'd like to return a single non-restricted page for '/' and '/index.html', but have restrictions on all the other locations on the server. It doesn't seem possible to do that if the entire server has to be restricted.

jandrieu avatar Apr 06 '17 22:04 jandrieu