walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.18k stars 2.27k forks source link

about running workerman as http server & websocket server #698

Open raghuveer opened 2 years ago

raghuveer commented 2 years ago

Hi,

can we run nginx to serve ssl offloading & reverse proxy purpose running on port 443 and run http server and websocket server triggering code with workerman

1) in different folder structure & URI on the same port like 3000?

http server: https://example.com:3000 websocket server: https://example/ws/:3000 (sub-folder scenario) https://ws.example.com/:3000 (sub-domain scenario though)

2) in same folder structure & URI on different ports like 3000 for http server and 3001 for websocket server kind of?

http server: https://example.com:3000 websocket server: https://example:3001

Hope both are possible?

walkor commented 2 years ago

Yes both are possible

raghuveer commented 2 years ago

thank you for your confirmation