I see only one change about the issue in nginx changelog:
Bugfix: standard error pages and responses of the
ngx_http_autoindex_module module used the "bgcolor" attribute, and
might be displayed incorrectly when using custom color settings in
browsers.
So, it does not look like an nginx problem.