annotate contrib/vim/ftdetect/nginx.vim @ 7561:9f1f9d6e056a

HTTP/2: discard remaining request body after redirect. Previously, if unbuffered request body reading wasn't finished before the request was redirected to a different location using error_page or X-Accel-Redirect, and the request body is read again, this could lead to disastrous effects, such as a duplicate post_handler call or "http request count is zero" alert followed by a segmentation fault. This happened in the following configuration (ticket #1819): location / { proxy_request_buffering off; proxy_pass http://bad; proxy_intercept_errors on; error_page 502 = /error; } location /error { proxy_pass http://backend; }
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 19 Aug 2019 15:16:06 +0300
parents f38043bd15f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5460
f38043bd15f5 Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff changeset
1 au BufRead,BufNewFile *.nginx set ft=nginx
f38043bd15f5 Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff changeset
2 au BufRead,BufNewFile */etc/nginx/* set ft=nginx
f38043bd15f5 Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff changeset
3 au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
f38043bd15f5 Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff changeset
4 au BufRead,BufNewFile nginx.conf set ft=nginx