Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find out what version of Apache or nginx web server is used in ElasticBeanStalk?

Following is what I see in Elastic BeanStalk

https://i.stack.imgur.com/2hzlB.png

I'm going through Apache documentation to write Rewrite rules. But I'm confused which version I should read.

http://httpd.apache.org/docs/

like image 684
Spandana Krishnan Avatar asked Nov 05 '17 02:11

Spandana Krishnan


People also ask

How do you check my web server is Apache or Nginx?

How to Check If You're Running Nginx or Apache. On most websites, you can simply check the server HTTP header to see if it says Nginx or Apache. You can see HTTP headers by launching the network tab in Chrome Devtools. Or you can check headers in a tool like Pingdom or GTmetrix.

Do I use Apache or Nginx?

At serving static content, Nginx is the king! It performs 2.5 times faster than Apache according to a benchmark test running up to 1,000 simultaneous connections. Nginx serves the static resources without PHP having to know about this. On the other hand, Apache handles all those requests with that costly overhead.

Does Elastic Beanstalk use Apache or Nginx?

Elastic Beanstalk can use nginx or Apache HTTPD as the reverse proxy to map your application to your Elastic Load Balancing load balancer on port 80. The default is nginx.


1 Answers

Log in via SSH and run:

$ httpd -v

Server version: Apache/2.4.16 (Unix)

See also: eb ssh


If running Nginx, use:

$ nginx -v
like image 136
jaswrks Avatar answered Sep 28 '22 10:09

jaswrks