2017-02-15 33 views
12

我在Windows 7上使用nginx版本1.10.3。我想啓用http2。我已經添加在配置文件中的以下內容:在Windows上啓用Nginx上的http2

server { 
    listen  443 http2 ssl proxy_protocol; 
} 

當我開始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 

行號64是一樣的上述規定的線。

如何在Windows上安裝ngx_http_v2_module

+1

正式版本還沒有做出http2模塊裝配在窗戶。如果您必須使用http2,則應該使用Linux。 –

回答

4

HTTP2模塊目前僅適用於Linux nginx-full版本。

考慮使用基於Debian或RHEL的操作系統來達到此目的。

下面的命令將幫助您安裝在基於Debian操作系統nginx-full

apt-get install nginx-full