Mercurial > hg > nginx-quic
annotate contrib/vim/ftdetect/nginx.vim @ 5715:790ba7484bb6
Fixed config parsing of the last try_files parameter.
Do not taste the last parameter against directory, as otherwise it would
result in the trailing slash being cut from the parameter value.
Notably, this prevents an internal redirect to an empty URI
if the parameter is set to the literal slash:
location / { try_files $uri /; }
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 28 May 2014 20:18:05 +0400 |
parents | f38043bd15f5 |
children |
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 |