Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running two or more http servers with different ports #24

Open
Mad-Head opened this issue Apr 16, 2015 · 2 comments
Open

Running two or more http servers with different ports #24

Mad-Head opened this issue Apr 16, 2015 · 2 comments

Comments

@Mad-Head
Copy link

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
Copy link

Did you find a solution for this?

@davidlondono
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants