Re: several sibling location block

2017-06-14 Thread Ingo Schmidt
Hi! to nginx, as follows: location / { # force download for ceratain file types location ~* \.(?:fb2|mobi|mp3)$ { add_header Content-Disposition "attachment"; } location ~* \.fb2$ { add_header Content-type "text/fb2+xml"; } location ~* \.mobi$ {

Re: rewrite last using variable

2013-10-28 Thread Ingo Schmidt
Hi! I believe it is intended to be "no", for internal rewrites at least. Hmm, any reason why it might be intended? Also, it would be nice if the docs could mention this, because I find it unintuitive, if rewrite behaves differently depending on the rewrite type. You can do something like set

rewrite last using variable

2013-10-27 Thread Ingo Schmidt
Hi, consider the following simplified nginx config snippet: set $var "/url?par=val"; location = /a { rewrite ^ $var redirect; } location = /b { rewrite ^ $var last; } location = /url { proxy_pass http://some_backend; } For location a the redirect goes via the client and everything w

nginx and upstart

2013-10-01 Thread Ingo Schmidt
Hi! I have seen this question has been asked before in the list, but unfortunately there haven't been any answers, so let's see if I have more luck :) In can successfully upgrade the nginx binary on the fly as documented here: http://wiki.nginx.org/CommandLine#Upgrading_To_a_New_Binary_On_The