How do I know what server my NodeJS application is running on?

March 27, 2018 672 views
Node.js JavaScript Apache Nginx Ubuntu 16.04

I just created a NodeJS application on port 80, I would like to know what server it is running on, is it Nginx or Apache?

1 Answer

If you are only running NodeJS with port 80 then then visiting http://your.appdomain will be NodeJS

If you are looking to use NGINX as your entrypoint/proxy this is a good reference...
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04

by Brennen Bearnes
Node.js is an open source JavaScript runtime environment for easily building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.
Have another answer? Share your knowledge.