Thanks for the replies .
I figured out the issue . This was not related to Nginx Config . The
requests i was trying to route had an issue .
Btw , I shifted to map as well and both configurations worked.
Thanks for your comments and appreciate it .
Posted at Nginx Forum:
http://forum.nginx.o
On Sun, Sep 27, 2015 at 04:32:56AM -0400, cacrus wrote:
Hi there,
Your Subject: mentions "nested location"; but your config doesn't seem
to show any explicit nesting.
> location /parent/ {
> set $basic_file /nginx/conf/.htpasswd;
> if ($request_uri ~ (vi
Not an nginx expert but i think you can use a map
http://nginx.org/en/docs/http/ngx_http_map_module.html
You dont even need an if.
Live long and prosper,
Christ-Jan Wijtmans
https://github.com/cjwijtmans
http://facebook.com/cj.wijtmans
http://twitter.com/cjwijtmans
On Sun, Sep 27, 2015 at 10:32
Hi ,
I am trying to setup different authentication based on different strings in
the $request , here is my case .
location /parent/ {
set $basic_file /nginx/conf/.htpasswd;
if ($request_uri ~ (visualize|dashboard|settings)){
set $basic_f