使用 Nginx 在 Linux 上托管 ASP.NET Core

server {
    listen        80;
    server_name   example.com *.example.com;
    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;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
    }
}

使用 Nginx 在 Linux 上托管 ASP.NET Core

使用 Nginx 在 Linux 上托管 ASP.NET Core

上一篇:ImportError: DLL load failed while importing pymssql解决手记


下一篇:MongoDB——linux下安装记录