我的 https apache 代理服务器后面的 Kestrel 中是否需要 https?
Does it require https in Kestrel behind my https apache proxy server?
我不太清楚Kestrel服务器是否需要加密为localhost服务器的想法。
我使用带 HTTPS 的 Apache 作为 Kestrel 服务器的代理服务器。在 Kestrel 中也需要 运行 https 吗?理论上,通过 Apache 代理服务器(启用 HTTPS)的内容应该被加密,对吧?
如果您有任何想法,请说明。
不,您不必加密 Apache 和 Kestrel 之间的流量。 apache(或 nginx 或 IIS)将成为 SSL 终止点。
但是你需要确定的是
- Apache 正确设置转发 headers (
x-forwarded-*
headers)
- kestrel 已正确配置为使用这些 headers(
UseIISIntegration
已经这样做)或注册 app.UseForwardedHeaders();
中间件,中间件也会注册它们
没有任何一个,如果 controllers/actions 标记有 [RequireHttps]
属性
,您的请求将失败
我不太清楚Kestrel服务器是否需要加密为localhost服务器的想法。
我使用带 HTTPS 的 Apache 作为 Kestrel 服务器的代理服务器。在 Kestrel 中也需要 运行 https 吗?理论上,通过 Apache 代理服务器(启用 HTTPS)的内容应该被加密,对吧?
如果您有任何想法,请说明。
不,您不必加密 Apache 和 Kestrel 之间的流量。 apache(或 nginx 或 IIS)将成为 SSL 终止点。
但是你需要确定的是
- Apache 正确设置转发 headers (
x-forwarded-*
headers) - kestrel 已正确配置为使用这些 headers(
UseIISIntegration
已经这样做)或注册app.UseForwardedHeaders();
中间件,中间件也会注册它们
没有任何一个,如果 controllers/actions 标记有 [RequireHttps]
属性