question

21526974 avatar image
0 Votes"
21526974 asked miwan2-msft edited

Blzaor in Nginx

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


dotnet-aspnet-core-blazor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

miwan2-msft avatar image
0 Votes"
miwan2-msft answered miwan2-msft edited

Hi, @21526974

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.






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.