'Nginx Tornado WSS and PHP

Good morning,

I have the following concern, I am trying to configure NGINX with SSL with 2 applications (subdomains), one is with WebSocket (Python-Tornado) and the other is a manager developed in PHP.

The server scheme corresponds to my https://ws.example.cl (Tornado-wss) with proxy or internal redirection to 127.0.0.1:8888 and the php application in the domain https://app.example.cl directly entering port 443.

My big question lies in feasibility, is it possible to make it work? or how should the proxy structure be configured with WSS in NGINX?

Greetings.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source