HAProxy forwarding custom port

Hi, just a small note of am being doing. That to setup HAProxy to forward custom port request to one of my nodejs server.

Add these into existing /etc/haproxy/haproxy.cfg

frontend mynodejs
  bind *:3000
  
  default_backend nodejs

backend nodejs
  server nodejs1 127.0.0.1:8080
Source of snippet is from here
Have fun ^.^

Comments