Author Topic: How to set up CWP to make forward to node-express ( nodejs ) webserver  (Read 1659 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I am trying to make a forward to a nodejs back end server using CWP Pro. I can open the web page of that nodejs webserver using port 3000. When I make a port forwarding ( port 3000 ) in my router to the internal nodejs webserver ( 192.168.6.xx ), that web page is reachable from the internet using my public ip and port 3000.
When i try to set up CWP Pro as proxy but I can't find a setting that is working for me.
1. Webserver Settings - WebServers Domain Conf - nginx->proxy->(custom port): Nginx default vhost template type = default, Nginx default vhost template: nodejs-ssl; custom port: 3000; IP: 192.168.6.xx. This gives a Bad Gateway error.
2. Webserver Settings - WebServers Domain Conf - nginx->proxy->(custom port): Nginx default vhost template type = default, Nginx default vhost template: nodejs-ssl; Apache default vhost template type: proxy; Apache default vhost template: default; custom port: 3000; IP: 192.168.6.xx. This gives a Service Unavailable and sometimes the default Centos http test page.

Anyone here who knows what I am doing wrong?
Thanks in advance :)

Edwin