Warm tip: This article is reproduced from serverfault.com, please click

apache-asp.net核心茶est是否需要在生产中的https上运行?

(apache - Does asp.net core kestrel need to run on https in production?)

发布于 2020-12-01 21:58:24

我可能打算在apache反向代理后面的linux上运行asp.net核心。

当运行asp.net核心时,是否需要在https上运行?

我可以按照以下方式设置apache https指令-当我从浏览器访问它时,它工作正常。

ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
ServerName app.domain.com
ServerAlias *.app.domain.com
ErrorLog ${APACHE_LOG_DIR}helloapp-error.log
CustomLog ${APACHE_LOG_DIR}helloapp-access.log common

这有什么问题吗?

Questioner
Steve
Viewed
11
Brando Zhang 2020-12-02 10:08:17

我认为,如果你在apache上启用了https,并且仅在apache和kestrel服务器之间使用http重定向,则可以使用http。像这样:

浏览器---> https ---> Apache-> http ---> kestrel。

这不会引起安全问题。HTTPS有助于防止入侵者篡改你的网站和用户浏览器之间的通信。由于如果有人入侵你的服务器以捕获http请求,那么他也可以获取你服务器的所有信息。