Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

engintron proxy server nodejs

Discussion in 'General Discussion' started by garrablanka, Apr 8, 2018.

  1. garrablanka

    garrablanka Member

    Joined:
    Apr 12, 2017
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Chile
    cPanel Access Level:
    Website Owner
    Hello

    I have created a node program that it's working on http://mydomain:3000/node/index.js and I want to "hide" the port (3000).

    I have been reading that I need the a proxy server so I installed engintron and configured different ways but I can't reach what I want.

    For example I have used:

    server {
    listen here.is.my.ip:80;
    server_name www.mydomain.com mydomain.com;
    location /node {
    proxy_pass http://here.is.my.ip:3000;
    }
    }



    Please help!
    Thanks
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,834
    Likes Received:
    85
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    We are unable to directly assist with the specific custom proxy configuration entries you will need to use, but here's a third-party URL you may find helpful:

    Apache redirect to another port

    Once you have a specific entry to use, here are the instructions on how to customize the Virtual Host:

    Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation

    Remember to run the following command after setting up a custom include file:

    Code:
    /usr/local/cpanel/scripts/ensure_vhost_includes --all-users
    Additionally, here's a list of companies offering system admin services should you need assistance with this:

    System Administration Services | cPanel Forums

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice