Hi folks,
would anyone know how to create a hatches redirect for example:
domain: subdaom.xyz.com
redirect to: 0.0.0.0:8050 (where nodeJS site is)
however I still need it to show the domain name and force ssl
Any help would be appreciated.
Hi folks,
would anyone know how to create a hatches redirect for example:
domain: subdaom.xyz.com
redirect to: 0.0.0.0:8050 (where nodeJS site is)
however I still need it to show the domain name and force ssl
Any help would be appreciated.
Let me see if I got this straight:
This is called reverse proxying, where your front-facing webserver (e.g.: Apache or nginx) will proxy the incoming requests on port 80/443 to 8050
You need to provide further information about your setup, if you’re using a control panel (e.g.: cPanel or Plesk), what webserver does it use (e.g.: Apache, nginx or LiteSpeed)…
yeah I know its called a reversed proxy, but I want to see if there is a way of doing it through htaccess before I start messing around with Nginx.
Server is Cpanel & apache.
Softaculous used to do some sort of trickery to run Ghost (NodeJS) blogs - I believe they’ve used .htaccess
Take a look here, seems like mod_proxy could do the job
Edit: If your host has CloudLinux, you could ask them to enable NodeJS support