Re: How to redirect only if/after a FAILED basic authentication?
On Sun, Sep 22, 2013 at 02:14:55PM -0700, jen...@promessage.com wrote: Hi there, > Now, if a visitor: > > (1) enters bad (or no) crendentials > (2) clicks "Cancel" on the BASIC auth dialog box > > the site displays a > > "401 Authorization Required" > > page. For accuracy:
How to redirect only if/after a FAILED basic authentication?
I'm setting up an auth-before-proxy_pass config. The following works now: location / { root /dev/null; auth_basic "Restricted Remote"; auth_basic_user_file /data/etc/security/auth/passwd.basic; proxy_pass