cyberpanel node.js setup

March 7, 2022 . 1 MIN READ

context / {

type                    appserver

location                /home/discount.deals/public_html

binPath                 /usr/bin/node

appType                 node

maxConns                100

 

rewrite  {

 

}

addDefaultCharset       off

}

RewriteEngine On

RewriteRule ^/myapp$ http://127.0.0.1:61000/ [P,L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^/myapp/(.*)$ http://127.0.0.1:61000/$1 [P,L]

 

RewriteEngine OnRewriteRule ^myapp/(.*) http://localhost:61000/$1 [P]

https://forums.cyberpanel.net/discussion/4739/point-domain-to-a-different-port-of-ip-address

https://cyberpanel.net/blog/2018/04/07/how-to-write-rewrite-rules-for-openlitespeed/

https://forums.cyberpanel.net/discussion/526/proxy-preserve-host

extprocessor disco3961 {

type                    lsapi

address                 UDS://tmp/lshttpd/disco3961.sock

maxConns                1000

env                     LSAPI_CHILDREN=10

initTimeout             600

retryTimeout            0

persistConn             1

pcKeepAliveTimeout      1

respBuffer              0

autoStart               1

path                    /usr/local/lsws/lsphp74/bin/lsphp

extUser                 disco3961

extGroup                disco3961

memSoftLimit            2047M

memHardLimit            2047M

procSoftLimit           400

procHardLimit           500

}

https://stackoverflow.com/questions/67675249/how-to-deploy-next-js-app-on-domain-with-vps-server-openlitespeed

Reference: https://cyberpanel.net/blog/2019/03/07/setup-express-js-application-on-cyberpanel-openlitespeed/

https://upcloud.com/community/tutorials/install-wordpress-cyberpanel-ubuntu/

https://idroot.us/install-cyberpanel-ubuntu-20-04/

https://cyberpanel.net/docs/installing-cyberpanel/

Leave a Reply

Your email address will not be published. Required fields are marked *