Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Hi @hidinglapisclam,
You’ll need to configure a Reverse Proxy for your NodeJS server as it listens on a specific port. Usually, when talking about Reverse Proxies, Nginx is the go to WebSerivce. There is even a tutorial on how to add NodeJS with Reverse Proxy to your Droplet here;
If you however whish to use Apache, then your apache config should look something like this:
- <VirtualHost *:80>
- ServerName your-server-ip
-
- ProxyRequests Off
- ProxyPreserveHost On
- ProxyVia Full
-
- <Proxy *>
- Require all granted
- </Proxy>
-
- ProxyPass / http://127.0.0.1:8000/
- ProxyPassReverse / http://127.0.0.1:8000/
- </VirtualHost>
Where the ProxyPass would have your localhost IP address and the port you’ve selected your NodeJs instance to work. The above would code would be integrated with your website’s Apache config in the /etc/apache2/sites-available/ folder.