skip to Main Content

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


  1. Chosen as BEST ANSWER

    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.


  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search