V.Villacis
V.Villacis

Reputation: 955

When I SSH into my EC2 instance, how do I figure out what server it is currently running?

When I ssh into the EC2 instance and look around the server configuration files, I see Apache config files, NGINX config files. Why are both servers there? Which one takes priority? Do both servers run simultaneously? Do they work together? Where would my server side code go for Node.js?

It is Node.js running on 64bit Amazon Linux/4.10.2 on an Elastic Beanstalk environment.

Upvotes: 1

Views: 1493

Answers (2)

V.Villacis
V.Villacis

Reputation: 955

I asked this question in Serverfault and got this answer. You can run the command ps ax | grep -E '(apache2|httpd|nginx)' to see which one is running.

Upvotes: 3

jarmod
jarmod

Reputation: 78850

To quote the documentation:

The AWS Elastic Beanstalk Node.js platform is a platform version for Node.js web applications that can run behind an nginx proxy server, behind an Apache server, or standalone.

I would assume that to simplify deployment, Elastic Beanstalk chooses to deploy both NGINX and Apache, regardless of which mechanism you choose to serve content.

The configuration options are ProxyServer=apache/nginx/none.

Upvotes: 2

Related Questions