N
N
Ne-Lexa2017-02-24 17:37:08
Nginx
Ne-Lexa, 2017-02-24 17:37:08

Why is nginx not accepting http2 settings?

On Ubuntu 14.04, I updated nginx, built it with the ngx_http_v2_module module and with the OpenSSL version, which should support ALPN, but http2 does not work (https works) and errors are thrown into the logs.

# cat /var/log/nginx/error.log
2017/02/24 17:19:03 [emerg] 21113#0: invalid parameter "http2" in /etc/nginx/
sites-enabled/sitename.conf:11

# nginx -V
nginx version: nginx/1.10.2
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
built with OpenSSL 1.0.2h  3 May 2016
TLS SNI support enabled
configure arguments: --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-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_v2_module --with-ipv6 --with-openssl=/usr/local/src/openssl

Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fixid, 2017-02-24
@NeLexa

OpenSSL must be 1.0.2j or newer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question