【发布时间】:2017-02-18 05:36:08
【问题描述】:
我想在我的 Ubuntu 服务器上测试“新”ASP.NET Core。我使用 Apache,但官方文档 (https://docs.asp.net/en/latest/publishing/linuxproduction.html) 仅涵盖 Nginx。有人可以帮我将反向代理的 Nginx 配置“翻译”为 Apache VHost 吗?
server { listen 80; location / { proxy_pass http://localhost:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }来源:ASP.NET Core 文档(见上文)
对于 SSL:https://docs.asp.net/en/latest/publishing/linuxproduction.html#configure-ssl
【问题讨论】:
-
我个人并不熟悉 Apache,所以留下评论而不是答案,但这篇文章似乎给了你想要的东西:tattoocoder.com/…。
标签: asp.net apache nginx reverse-proxy