2017年4月20日星期四

Nginx enable http2

Nginx enable http2

change Nginx config

listen 443 ssl http2

mac curl

curl -I --http2 https://www.cloudflare.com/
curl: (1) Unsupported protocol

brew install --force curl --with-nghttp2
~ yan% brew link curl
Warning: curl is keg-only and must be linked with --force
Note that doing so can interfere with building software.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc
~ yan% brew link --force curl
Linking /usr/local/Cellar/curl/7.54.0... 377 symlinks created

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc