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.
2
Answers
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.To quote the documentation:
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
.