How to "Require User" like Apache in Nginx

2014-03-07 Thread flarik
Hi all, I was just wondering, how to do the following in nginx: # apache.conf: # --- AuthType Basic AuthUserFile /var/www/auth/htpasswd AuthName "pass please" require valid-user Allow from all Require user u

Re: understanding break and add_header combo

2013-05-03 Thread flarik
Francis Daly Wrote: --- Hello Francis, thanks for your response. > In nginx, one request is handled in one location. So I expect that no more > than one set of add_header directives will apply. And as you only show > regex locations, if the fir

understanding break and add_header combo

2013-05-02 Thread flarik
Hello, I'm trying to undestand the break; statement in combination with add_header combo, on the wiki it says the following: "Completes the current set of rules. Continue processing within the current location block but do not process any more rewrite directives." I read this as everything that