I am using nginx
version 1.10.3
on windows 7. I want to enable http2
. I have added the following in the config file:
server {
listen 443 http2 ssl proxy_protocol;
}
When I start nginx server, I get the following error:
2017/02/15 14:34:33 [emerg] 8948#6892: the "http2" parameter requires
ngx_http_v2_module in C:\Develop\Application\nginx-1.10.3/conf/nginx.conf:64
Line number 64 is the same as the line specified above.
How can I install ngx_http_v2_module
on Windows?
Configure NGINX for HTTP/2 SupportEdit the file containing the server block for the domain. Append the http2 keyword to the listen directives for both Ipv4 ( 443 ) and Ipv6 ( [::]:443 ), and add the line ssl_protocols TLSv1.
To run HTTP/2 on Nginx you must use Nginx version 1.9. 5 or later. Ensure that your site uses SSL/TLS encryption. Currently, browsers only support HTTP/2 on websites delivering content over HTTPS.
In the Nginx configuration file, the default_server option specifies the default server to which a client request with an unknown domain and an empty host field will be forwarded.
HTTP2 module is currently available only for Linux nginx-full
builds.
Consider to use operating systems based on Debian or RHEL for this purpose.
Following command will help you to install nginx-full
on Debian based OS:
apt-get install nginx-full
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With