简体   繁体   English

在Windows上的Nginx上启用http2

[英]Enable http2 on Nginx on Windows

I am using nginx version 1.10.3 on windows 7. I want to enable http2 . 我在Windows 7上使用nginx版本1.10.3 。我想启用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: 当我启动nginx服务器时,我收到以下错误:

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. 行号64与上面指定的行相同。

How can I install ngx_http_v2_module on Windows? 如何在Windows上安装ngx_http_v2_module

HTTP2 module is currently available only for Linux nginx-full builds. HTTP2模块目前仅适用于Linux nginx-full版本。

Consider to use operating systems based on Debian or RHEL for this purpose. 考虑使用基于Debian或RHEL的操作系统来实现此目的。

Following command will help you to install nginx-full on Debian based OS: 以下命令将帮助您在基于Debian的操作系统上安装nginx-full

apt-get install nginx-full

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM