node.js - Proxy HTTPS without certificate with nginx -
is possible setup nginx proxies https connection without decrypting it? i'm talking this:
server { listen 443 ssl; server_name example.com; location / { proxy_pass https://localhost:8000; proxy_set_header x-real-ip $remote_addr; } }
i know, nginx need certificate add x-real-ip header, can re-encrypt proxy?
my motivation behind is, want pass traffic through node app, has spdy enabled. being able use spdy in node, need decryption reside inside app.
no, it's not possible. nginx have use host
header match server_name
of server block. without decrypting request, nginx doesn't know request header information. server block won't matched.
nginx 1.4+ supports spdy. http://nginx.org/en/docs/http/ngx_http_spdy_module.html. however, doesn't support server push yet. if don't need server push, why not terminate ssl @ nginx level?
Comments
Post a Comment