question

Dondon510-9757 avatar image
0 Votes"
Dondon510-9757 asked Bruce-SqlWork edited

How to implement ASP MVC NetCore 3.1 Websocket on Linux CentOS 7?

How to implement ASP MVC NetCore 3.1 Websocket on Linux CentOS 7?

Below is my httpd.conf, it works properly with the web app that's why I commented for the "/ws", but if I uncomment the "/ws" then I can't access the web, if I comment on the web then I can access the websocket, what did I miss here?

 <Location /prime/ptx/v1/>
    
    ProxyPass http://localhost:5002/ptx/v1/
    ProxyPassReverse http://localhost:5002/ptx/v1/
    
    #ProxyPass ws://localhost:5002/ptx/v1/ws/
    #ProxyPassReverse ws://localhost:5002/ptx/v1/ws/

If I can't use the same port, then how to change websocket listener port?

   Require all granted
    
 </Location>
dotnet-aspnet-core-mvcdotnet-ad
· 2
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.

Hi @Dondon510-9757 ,

Welcome to Microsoft Q&A!
The “office-teams-linux-itpro” tag is for general questions about Teams client on Linux. Since your question is not related to Teams desktop client, I’ll remove the teams tag. Thanks for your understanding.

0 Votes 0 ·

noted with thanks

0 Votes 0 ·

1 Answer

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered Bruce-SqlWork edited

You are asking about configuring Apache as a reverse proxy. An Apache forum would be a better place. Anyway see this thread

https://stackoverflow.com/questions/27526281/websockets-and-apache-proxy-how-to-configure-mod-proxy-wstunnel

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.