Skip to content

Instantly share code, notes, and snippets.

@moaj257
Last active August 22, 2019 04:07
Show Gist options
  • Save moaj257/8f6438026a7cf8a576f297c34b114684 to your computer and use it in GitHub Desktop.
Save moaj257/8f6438026a7cf8a576f297c34b114684 to your computer and use it in GitHub Desktop.
Setup NodeJS in cPanel - Editing vHosts - in a subdomain
  • Find your vHost file
<VirtualHost ip_address>
  ServerName domain_name
  ServerAlias www.domain_name
  DocumentRoot /home/user_name/domain_name
  ServerAdmin webmaster@domain_name
  UseCanonicalName Off
  • Add the following highlighted code to your apache conf file
<Location "/">
  ProxyPreserveHost On
  ProxyPass http://domain_name:8080/
  ProxyPassReverse http://domain_name:8080/
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment