*) Change: a "proxy_pass" directive without URI part now uses
changed
URI after redirection with the “error_page” directive.
Thanks to Lanshun Zhou.
*) Feature: the "proxy/fastcgi/scgi/uwsgi_cache_lock",
"proxy/fastcgi/scgi/uwsgi_cache_lock_timeout" directives.
*) Feature: the "pcre_jit" directive.
*) Feature: the "if" SSI command supports captures in regular
expressions.
*) Bugfix: the "if" SSI command did not work inside the "block"
command.
*) Bugfix: the "limit_conn_log_level" and "limit_req_log_level"
directives might not work.
*) Bugfix: the "limit_rate" directive did not allow to use full
throughput, even if limit value was very high.
*) Bugfix: the "sendfile_max_chunk" directive did not work, if the
"limit_rate" directive was used.
*) Bugfix: a "proxy_pass" directive without URI part always used
original request URI if variables were used.
*) Bugfix: a "proxy_pass" directive without URI part might use
original
request after redirection with the “try_files” directive.
Thanks to Lanshun Zhou.
*) Bugfix: in the ngx_http_scgi_module.
*) Bugfix: in the ngx_http_mp4_module.
*) Bugfix: nginx could not be built on Solaris; the bug had appeared
Not sure which bugfix did this, but nginx 1.1.12 causes redirect loop on
one of my vhosts, which is a wordpress blog. Config below. nginx 1.1.11
works fine for this vhost.
On Tuesday 27 December 2011 03:37:15 lhmwzy wrote:
How to use pcre_jit?
pcre_jit on; - in the main context (root level of your nginx.conf).
It enables PCRE Jist-in-Time compilation on nginx configuration phase.
This
can speed up matching for all regular expressions in your config up to
10 times.
More info: http://sljit.sourceforge.net/pcre.html
The directive only works for nginx compiled with PCRE library 8.20 or
above.
Also, PCRE must be configured with --enable-jit flag.
If you compile PCRE with nginx (the “–with-pcre=path/to/sources” flag),
you can
also set the “–with-pcre-jit” flag to enable JIT support (PCRE >=
8.20).
Maybe best if changelog entries contain info whether new
features/bugfixes require updating current nginx configuration to
preserve nginx behavior with newer version or similar?
Having in mind I’m using relatively common nginx configuration/apache
backend, once these changes are applied to the stable release they will
probably affect many others?
On Tue, Dec 27, 2011 at 09:29:38PM +0200, Boyko Y. wrote:
The quick fix did the trick.
Maybe best if changelog entries contain info whether new
features/bugfixes require updating current nginx configuration
to preserve nginx behavior with newer version or similar?
Having in mind I’m using relatively common nginx
configuration/apache backend, once these changes are applied to
the stable release they will probably affect many others?
This change won’t be applied to stable. It was initially intended
to go to current only, see patch discussion here:
Actually, I even consider backing it out in current, as
configuration in question is quite common and I don’t really like
both of the workarounds. I don’t like previous behaviour either,
but the change seems to be more drastic than it was originally
expected.
Can I still use the ‘quick fix’ configuration (passing $request_uri to
the backend) with older (and newer) nginx releases? Or should I revert
back to older configuration when updating?
On Tue, Dec 27, 2011 at 06:09:50PM +0200, Boyko Y. wrote:
nginx 1.1.12 behaves differently compared to nginx 1.1.11 on my
setup which I’ll try to explain below.
[…]
While my configs may not be optimized or may even be wrong, they
were interpreted differently by every nginx version other than
1.1.12. Not sure if this is something I have to fix by changing
my configs?
(cc’d back to list)
Ok, so basically your config (simplified) is as follows:
With 1.1.12 proxy_pass without URI component always uses modified
URI after internal redirects, and as a result “/index.php” request
is passed to upstream instead of “/” previously (as index module
does an internal redirection, see [1]).
Apparently your backend doesn’t like this and returns 302 in an
attempt to normalize the URI.
On Wed, Dec 28, 2011 at 09:19:45AM +0200, Boyko Y. wrote:
Understood,
Can I still use the ‘quick fix’ configuration (passing
$request_uri to the backend) with older (and newer) nginx
releases? Or should I revert back to older configuration when
updating?