indutny / sticky-session

Sticky session balancer based on a `cluster` module
964 stars 99 forks source link

Running two or more http servers with different ports #24

Open Mad-Head opened 9 years ago

Mad-Head commented 9 years ago

I'm trying to run two http server on different ports using sticky-session.

sticky (http.createServer (require ('../ app'))). listen ( 3000 , function () { console.log ('server started on 3000 port'); });

sticky (http.createServer (require ('../ secondapp'))). listen ( 3006 , function () { console.log ('server started on 3006 port'); });

This leads to the fact that at the two servers can knock , but both ports we get to the last application.

azriel46d commented 8 years ago

Did you find a solution for this?

davidlondono commented 8 years ago

Im trying to implement kind of the same, one server for http and other for https, when the second one gets online, they work for http request for browser normal, but not for websocket