Blzaor in Nginx

兴 陈 1 Reputation point
2021-03-26T02:53:50.363+00:00

I am developing blazor server side application. I do not have any problems in my local tests,when I publish the application on my server managed with Nginx.These errors do not appear every time, sometimes all, sometimes just a few, but persistent websocket connection errors. I refer to the official documents to deploy my application in nginx。81756-qq%E6%88%AA%E5%9B%BE20210326104444.jpg

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,378 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Wang-MSFT 1,051 Reputation points
    2021-03-26T10:10:16.447+00:00

    Hi, @兴 陈

    Check WebSocket proxying

    Since version 1.3.13, nginx implements special mode of operation that allows setting up a tunnel between a client and proxied server if the proxied server returned a response with the code 101 (Switching Protocols), and the client asked for a protocol switch via the “Upgrade” header in a request.

    0 comments No comments