通过没有SSL证书的Nginx转发HTTPS流量 [英] Forward HTTPS traffic thru Nginx without SSL certificate

查看:1452
本文介绍了通过没有SSL证书的Nginx转发HTTPS流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Nginx公开我的NodeJS服务器在端口443上侦听.

I want to use Nginx to expose my NodeJS server listening on port 443.

我不想使用Nginx管理SSL证书.我宁愿使用https.createServerSNICallback选项在NodeJS服务器上执行此操作.

I don't want to manage the SSL certificate with Nginx. I would rather do that on the NodeJS server using the SNICallback option of https.createServer.

如何设置nginx.conf以支持此功能?

How do I setup the nginx.conf to support this?

推荐答案

您正在寻找ssl传递.您将设置nginx以使用TCP负载平衡(即使您只有一台服务器,但仍将其视为负载平衡)和ssl直通. 请注意,nginx将无法访问任何内容,并且您将失去使用代理的几乎所有优势,而无法进行负载平衡. 有关特定的配置示例,请参见这些说明.

You're looking for ssl pass-through. You'll set up your nginx to use TCP load balancing (even if you only have one server it's still thought of as load balancing) and ssl passthrough. Note that nginx will be unable to access any of the content and that you will lose almost all of the advantages of using a proxy other than the ability to do load balancing. See these instructions for a specific configuration example.

这篇关于通过没有SSL证书的Nginx转发HTTPS流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆