Log module question: does the buffer mess up the order of the log entries?

2013-09-22 Thread 海峰 刘
Hi experts, I am reading the log module source code, there is something difficult to make sure, so I ask for your help. Access log module use a buffer to buffer log entries before writing to the file system, the buffer is initialised before the worker processes are forked, so I guess after the

[ANN] ngx_openresty stable version 1.4.2.8 released

2013-09-22 Thread Yichun Zhang (agentzh)
Hello folks! I am happy to announce that the new stable version of ngx_openresty, 1.4.2.8, is now released: http://openresty.org/#Download Special thanks go to all the contributors for making this happen! Below is the complete change log for this release, as compared to the last (mainline)

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

2013-09-22 Thread Francis Daly
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:

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 Francis Daly
On Sun, Sep 22, 2013 at 01:28:02PM -0700, jen...@promessage.com wrote: > On Sun, Sep 22, 2013, at 01:13 PM, Francis Daly wrote: Hi there, > > proxy_set_header Host $host:12345; > That sounded promising, but, unfortunately ... no. > > Same beahvior -- initial reponse is without the portnum; a

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

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 Francis Daly
On Sun, Sep 22, 2013 at 10:11:50AM -0700, jen...@promessage.com wrote: Hi there, 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 responds

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,