CyberPanel Community

Deploy node.js in cyberpanel

NM
Nevin Mathews #1

hi i recently installed cyberpanel in my vps i was wondering if i can deploy node.js

6 replies
NK
Nitesh Kunnath #2

Yes you can. Few members here have already mentioned the process to get it successfully installed. Try searching for the same here and you may find it.

Jm
Joseph markas #3

Hi Nevin,

Did you find it how to deploy node js project?

NM
Nevin Mathews #4

nope, could you send a link to the post?

Ju
Julio #6

I got the answer from here: Proxy Preserve Host

Your application should be running in port, something like this 127.0.0.1:3000.

What you can do is to go to Websites > List of websites > Pick your website > Manage option. There you will find the vHost Conf section, there you should paste this:

extprocessor appname {
  type                    proxy
  address                 127.0.0.1:your_app_port (3000 for this example)
  maxConns                100
  pcKeepAliveTimeout      60
  initTimeout             60
  retryTimeout            0
  respBuffer              0
}

And the last step would be pasting the following in the Rewrite rules section

RewriteEngine On
RewriteRule ^(.*)$ HTTP://appname/$1 [P]

Best of luck!

Share

Edit

RZ
Rikaz Zarook #7

Now it’s all easy

Sign in to reply