【问题标题】:502 Bad Gateway on asp.net core 3.0 hosted in ubuntu 18.04 TLS with nginxasp.net core 3.0 上的 502 Bad Gateway 托管在 ubuntu 18.04 TLS 和 nginx
【发布时间】:2020-05-13 21:44:47
【问题描述】:

我使用 nginx 将 .NET CORE 应用程序发布到 ubuntu 18.04 TLS,但是当我尝试浏览时,我得到 502 Bad gateway。 我按照本教程进行操作:Host ASP.NET Core on Linux with Nginx

当我尝试导航到我的网站时,我收到 502 错误。 我的服务器IP是:185.162.127.7

【问题讨论】:

  • nginx 错误日志是怎么说的?
  • @hyvte 我是 linux 新手,如何检查?
  • 可能在/var/log/nginx/error.log附近的某个地方。

标签: asp.net linux asp.net-core nginx


【解决方案1】:

您可以尝试 dotnet run --urls http://0.0.0.0:5000,如果失败,您将获得 502 代码。

【讨论】:

    猜你喜欢
    • 2017-08-20
    • 2022-08-16
    • 1970-01-01
    • 2022-01-24
    • 2021-12-19
    • 2016-09-14
    • 2017-06-29
    • 1970-01-01
    • 2022-11-22
    相关资源
    最近更新 更多