0
我有我的ConfigEd nginx的一個http2服務的Chrome 51.0.2704.84沒有請求HTTP/2.0,但Safari瀏覽器的火狐做
worker_processes 2;
events {
worker_connections 1024;
multi_accept on;
use epoll;
}
http {
sendfile on;
server {
listen 80;
location/{
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
ssl_certificate /usr/cer/server.cer;
ssl_certificate_key /usr/cer/server.key;
location/{
root /usr/share/nginx/html;
index index.html;
}
}
}
與日誌消息
- 的Chrome 51.0.2704.84
- 的Safari 9.1.1
- 火狐47.0
https://www.nginx.com/blog/supporting-http2-google-鍍鉻的用戶/ –