How do I map the port number of a node.js app to a domain
How do I map the port number of a node.js app to a domain on my VPS? There are articles on Nginx but nothing really about the Apache way through panel on Inmotion?
Hello! I checked with one of our senior Support Technicians and was told that you will need to enable a reverse proxy. I was also cautioned that usually it's best to just request our Support Team set this up for you, but here is an overview of the process if you want to set it up yourself.
/scripts/rebuildhttpdconf
apachectl restart
I hope that helps! Remember, always make backups first, and definitely reach out to the Support Team if you aren't already comfortable with this sort of manual configuration.
Hello! I checked with one of our senior Support Technicians and was told that you will need to enable a reverse proxy. I was also cautioned that usually it's best to just request our Support Team set this up for you, but here is an overview of the process if you want to set it up yourself.
/etc/apache2/conf.d/userdata/ssl/2/CPANEL_USERNAME/DOMAIN_NAME/proxy.conf
/etc/apache2/conf.d/userdata/std/2/CPANEL_USERNAME/DOMAIN_NAME/proxy.conf
ProxyPass "/" "http://127.0.0.1:5000/"
ProxyPassReverse "/" "http://127.0.0.1:5000/"
SSLProxyEngine on
ProxyPass "/" "http://127.0.0.1:5000/"
ProxyPassReverse "/" "http://127.0.0.1:5000/"
/scripts/rebuildhttpdconf
and then
apachectl restart
I hope that helps! Remember, always make backups first, and definitely reach out to the Support Team if you aren't already comfortable with this sort of manual configuration.