Пробовал с последней версией Nginx, та же история
nginx version: nginx/1.17.6
built by gcc 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
built with OpenSSL 1.1.1 11 Sep 2018
TLS SNI support enabled
configure arguments: --with-debug --with-ld-opt=-Wl,-rpath,/usr/local/lib --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-cc-opt='-O0 -g -ggdb' --with-threads --with-pcre-jit --with-file-aio --with-http_v2_module --with-http_ssl_module --with-http_geoip_module --with-http_realip_module --with-http_gunzip_module --with-http_gzip_static_module --without-http_ssi_module --without-http_scgi_module --without-http_uwsgi_module --without-http_mirror_module --without-http_fastcgi_module --without-http_memcached_module --add-module=/opt/mod_pdf