The nginx documentation on "Configuration file measurement units" at http://nginx.org/en/docs/syntax.html says:
Sizes can be specified in bytes, kilobytes (suffixes k and K) or megabytes (suffixes m and M)
This is unclear, because kilobyte is officially defined as 1000 bytes and megabyte is officially defined as 1000000 bytes, but often it is used to mean 1024 bytes and 1024 * 1024 bytes respectively. Exactly what size kilobyte is used in the nginx configuration files? When the documentation says the default is 1m
is that 1000000
or 1048576
?
Looking at the source at http://hg.nginx.org/nginx/file/15056a29841a/src/core/ngx_parse.c (this is the version of ngx_parse.c in 1.5.6, but the function appears the same in the 0.3.53 version, and you can check the current version here), it appears k or K represent 1024 bytes, that is, kibibytes (KiB) and m or M represents mebibytes (MiB), that is 1024 KiB.