Is there a way to configure phusion passenger to listen on two ports, directing all traffic to a single application (multiple node.js processes)?
Asked
Active
Viewed 290 times
2 Answers
0
You can edit Passenger Standalone's Nginx template to accomplish that. But in general, Passenger for Nginx is more suitable for such a use case.
If I'm not mistaken you're an enterprise customer. Why not contact the enterprise support channel directly? :)

Hongli
- 18,682
- 15
- 79
- 107
0
Use the --nginx-config-template option and insert the following:
server {
listen 23403;
location / {
proxy_pass http://0.0.0.0:12300;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

Michael Allan Jackson
- 4,217
- 3
- 35
- 45