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

Posted March 27, 2018 1.6k views
NginxApacheNode.jsUbuntu 16.04JavaScript

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?

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.

Submit an Answer
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…

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.