Allow custom virtual hosts to shared accounts

reygoch

Registered
Mar 15, 2017
3
0
1
Croatia
cPanel Access Level
Reseller Owner
So, I want to allow my users to run custom apps on port 80 on shared account.

Right now, when I run nodejs app I have to use some other port since apache is listening on port 80, and users can't modify httpd.conf since it's server wide.

Is there some way to allow users to map ports in the background?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Is there some way to allow users to map ports in the background?
Hello,

Could you provide a specific example of the command they would run, or how the setup would work? Is there a specific application you are attempting to use?

Thank you.
 

reygoch

Registered
Mar 15, 2017
3
0
1
Croatia
cPanel Access Level
Reseller Owner
Well, they would start their nodejs server or what ever server that would listen on port `8080` for example. To access such web application visitor would have to go to `mydomain.com:8080` instead of just `mydomain.com` (which is port 80).

What I want is that all traffic from `mydomain.com` is forwarded to my app on port `8080` in the background. Basically a reverse proxy.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

This isn't natively supported, but I encourage you to vote and add feedback to the existing feature request for this at:

nodejs Hosting

Additionally, you can review the comments on this request to see how other users have implemented workarounds.

Thank you.
 

reygoch

Registered
Mar 15, 2017
3
0
1
Croatia
cPanel Access Level
Reseller Owner
Hello,

This isn't natively supported, but I encourage you to vote and add feedback to the existing feature request for this at:

nodejs Hosting

Additionally, you can review the comments on this request to see how other users have implemented workarounds.

Thank you.
Honestly, I don't see why there would have to be a dedicated nodejs hosting feature. Nodejs works just fine as it is, except that I can't really map custom ports to port 80. I don't want to do this for just nodejs but for python, haskell and c++ (or what ever language) servers as well.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
I'm not aware of a supported method that would work for this type of setup. You may want to consult with a qualified system administrator for help with this type of configuration:

System Administration Services | cPanel Forums

Or, you may find more user-feedback on this type of configuration from websites such as StackOverflow.

Thank you.