0

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?

0

To figure out which one is running you can run ps ax | grep -E '(apache2|httpd|nginx)' and see what comes out.

2
  • Thanks, I did it and got this: > 3510 ? Ss 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf -g daemon off; > 3517 ? S 0:00 nginx: worker process > 6272 pts/0 S+ 0:00 grep --color=auto -E (apache2|httpd|nginx) I do not what it means though. It looks like Nginx as I expected. But why is there apache config files in the instance is what I was getting at. – V.Villacis Sep 24 '19 at 5:10
  • Cool, so now you know whether you’re running Apache or Nginx. Question answered :) – MLu Sep 24 '19 at 6:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.