Re: Nginx as an AUTH + proxy_pass in front of a mail server on the LAN; I'm missing something about passing the port #

2013-09-22 Thread jen142
> Fair enough. Our responses "crossed in the mail"! :-) Thanks, Jen ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

How to redirect only if/after a FAILED basic authentication?

2013-09-22 Thread jen142
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

Re: Nginx as an AUTH + proxy_pass in front of a mail server on the LAN; I'm missing something about passing the port #

2013-09-22 Thread jen142
I lied! Sort of ... After making your suggested change, and restarting nginx, no change. BUT, after a machine reboot -- it now works as expected. Actis like something got stuck in some cache ... thanks a lot! ___ nginx mailing list nginx@nginx.org h

Re: Nginx as an AUTH + proxy_pass in front of a mail server on the LAN; I'm missing something about passing the port #

2013-09-22 Thread jen142
Hi Francis, On Sun, Sep 22, 2013, at 01:13 PM, Francis Daly wrote: > untested; and it may depend on exactly who is doing the redirecting, > but does replacing this line: > > > proxy_set_header Host $host; > > with > > proxy_set_header Host $host:12345; > > change how it res

Nginx as an AUTH + proxy_pass in front of a mail server on the LAN; I'm missing something about passing the port #

2013-09-22 Thread jen142
I have a mail server on my lan. It exposes a WebUI over SSL on port:443. It currently only has 1-step, password authentication. I want to add a 2nd layer of authentication, and put that mailserver behind an nginx server that: (1) adds BASIC authentication, and (2) after OK auth,