Apache
Use this tag (along with an appropriate programming-language tag) for programming questions relating to the Apache HTTP Server
Nginx
Nginx ("engine x") is a web server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.
Better proxy popular
Example |
---|
"If you have two servers you would be better with nginx on site a proxying all requests to the internal server b with apache db and gearman on the internal server" from question Generating PDF between 2 sites |
"Tornadoweb and nginx are popular web servers for the moment and many benchmarkings show that they have a better performance than apache under certain circumstances" from question Is 'epoll' the essential reason that Tornadoweb(or Nginx) is so fast? |
"Yes - it s stable and it has much much better performance than apache if configured properly of course;no nginx is not compatible with apache - configuration is completely different" from question Nginx/FastCGI vs Apache/suPHP on Joomla sites |
"Apache can be just as good but requires building from source and knowing exactly what configuration to use to match nginx;however apache has more features and is a little easier to work with" from question Apache or Nginx to serve Django applications? |
"Setting up https in apache isn t too hard and then just use modproxy to send requests internally to your play application;any one of the reverse proxy systems can likely do this nginx is popular too and generally has easier configuration than apache but i ve never used it with https" from question Play-framework [2.0] HTTPS "Any one of the reverse proxy systems can likely do this nginx is popular too and generally has easier configuration than apache but i ve never used this nginx with https" from question Play-framework [2.0] HTTPS |
"Now back to the question my guess based on reading tests published here would be that the proper multi-thread apache architecture should scale better than nginx on multi-core cpus" from question Will a Multi-Core / Multi-Proc help performance on a web server? "I have no idea what i m doing so i dove nose-first into nginx -- which i had never used before -- because someone told me it s better than apache at dealing with lots of small tasks and requests -- not that i would know how to turn apache into a proxy mind you" from question Domain name and port based proxy "Although this thread is more than a year old it still merits from the fact that no one mentioned about the not so recent innovations of nginx lighty and other web servers which scale much better than apache at higher concurrency and consume lesser resources" from question Advice on implementing a web server |
"The general feel has always been that nginx is lighter and easier to configure but on the flip side perhaps isn t as fully featured as apache because of that" from question What is better with HTTP/2: Apache vs Nginx? |
"Nginx is faster and lighter but many people find it easier to work with apache because of .htaccess support nginx does not have an analog due to performance concern" from question Apache and Nginx together, why? "I have configured tomcat with apache web server in past and never slowness problem before and practically speaking nginx is said to much lighter and faster than apache web server" from question Why Nginx response extremely slow while accessing my Rails app (Both running on same Windows machine)? |
Better server use
Example |
---|
"I think you would like lemp e stands for the nginx and for a lot small projects it would be better than apache" from question Do I have to use PHP if I am running a WAMP/MAMP/LAMP stack? "Nginx is better at handling requests since it does not spawn a new process for every request unlike apache" from question Apache + mod_wsgi vs nginx + gunicorn "If you want to use something in front of it though i suggest you use something like nginx better than apache since nginx is also asynchronous like node and it s performs really well at serving static files" from question Regarding the using expressjs on Apache web server "I will say that nginx tends to handle heavier loads better than apache though so take a look at that" from question Node.js/express/mongodb instead of apache/mysql? "Why nginx might be better than apache when one is long polling and why long polling is better than periodically polling a server" from question Where does a beginner learn about the technology behind thrift and web servers? "16 cores apache would scale better than nginx while nginx would process more client requests" from question Will a Multi-Core / Multi-Proc help performance on a web server? "4 i d like to understand why nginx might be better than apache when one is long polling and why long polling is better than periodically polling a server" from question Where does a beginner learn about the technology behind thrift and web servers? "The remote server is set up to allow very few maximum concurrent clients generally nginx handles many concurrent clients better than apache since it doesn t need to fork a new process for every request so if it becomes an issue you might want to look into switching web servers" from question Whats the limit on asynchronous request to a PHP script making CURL requests "Nginx with its own mod_wsgi seems to perform even better than apache but hey you didn t ask about that" from question Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi "I aways heart that nginx performs better than apache server" from question Why nginx performs better than apache httpd server? "Apache made a claim that apache 2.4 will offer performance as good or better than nginx" from question Low latency web server/load balancer for the non-Twitters of the world "Nginx + gunicorn is likely to work better than apache + modwsgi at this point in time" from question Nginx serving Django static media | 502 bad gateway "I recommend you to use nginx as an reverse proxy since the configuration is easier and the performance is much better than apache" from question Proxy HTTP requests using subdomain "Nginx is better suited than apache as it is light and single threaded vs apache thread per request in most normal setups" from question Why do we need apache under Node.js express web framework? |
"Further than that i wouldn t use apache at all if i needed to optimize things nginx is much better as a server a server s even faster than node.js for serving static files for example" from question Apache, NodeJS and socket.io: Use Apache or NodeJS as Reverse-Proxy? |
"I ve heard it suggested that i use nginx as a reverse proxy in front of apache and node.js is that a better solution than just nginx" from question Long Polling Options: Nginx, PHP, Node.js |
"Next you ll find that the threading model of nginx is much more efficient than apache s for what you re doing" from question Php webservice doesn't handle multiple requests at the same time |
"So jnlp jar files can be hosted on any http server even not java based apache nginx" from question Will my java web start app work if the client machine has java 8 and the server has openjdk 11? |
"Note that in any case for increased security and fast static file css js delivery you might want to add a reverse proxy layer nginx usually provides better performance but apache works as well before the nodejs python server" from question A website design : how do I combine node.js with php? |
"I found one answer here and it looks much simpler than the apache one react-router and nginx basically you need to tell the web server to forward all requests to your react s index.html and therefore letting react-router handle the routing" from question Refresh react app, 404 error. React router issue |
"Since it s not running as a listening server i can t use nginx node_cgi is not mature with apache how am i supposed to run this sample" from question Howto run google assistand bitcoinInfo example webhook index.js |
"Nginx is more performant than apache in most cases with high-levels of requests" from question Apache server running at nearly 100% |
"You can the apache run more than one programmer to listen the same port but if you just want to a map 80 which you open to the public to the backend server you can use a nginx as your delegation server" from question How to have both docker and apache using only one port? |
"Nginx or other server is not much more efficient than apache" from question Long Polling with PHP on Apache |
"Also you should consider using nginx as server that s more flexible than apache" from question Laravel routes returning 404 after move from xampp to apache 2.4.7. mod_rewrite or htacess or missing apache setting? |
"So i understand there are two kinds of servers first kind is web server or http server such as nginx apache caddy another kind is app server such as tomcat undertow" from question Is tomcat = apache (or other web server) + JavaEE? |
"Just one tip if only job for the http server will be just proxying the play apps consider using some lighter option than apache for an example nginx or lighttpd you ll find sample configurations for all of only job for the http server will be just proxying the play apps in play s documentation" from question Setting up multiple domains with Play Framework |
"I chose nginx because i ve read that it is lighter and more scalable than apache and can be used as a web server or as a reverse proxy" from question NGINX set-up server-block on existing domain names/sites |
"If you want to use .htaccess files you will need to install apache which is a web server using a different heavier architecture;nginx doesn t support .htaccess files that is an apache feature" from question .htaccess and RewriteCond not working on NGINX |
"Apache mod_wsgi is still a more than acceptable solution and it will actually perform better with less resources when run as;nginx - apache mod_wsgi" from question Django and nginx. Do I still need apache? |
"But doing that kind of things with apache is rather painfull and is easier with nginx" from question Apache2 starts only with sudo "Nginx can be configured to only respond to requests matching a predefined pattern far easier than with apache" from question Nginx only serve jpeg files |
"Also when your setting up the server i would say start with nginx it s uses less resources than apache" from question How to scale a web application |
"I am not going into how to do rewrites on nginx because it is much more complicated than apache" from question How to output a javascript file from a PHP file that can be referenced from a script include tag |
"The number of concurrent requests are limited by the number of children threads yes but apache is not spawning a new thread child for every request which would be ridiculously slow even with threads creation and teardown for every request would be way too slow;nginx uses a master-worker model" from question Nginx : Its Multithreaded but uses multiple processes? |
Faster static files
Example |
---|
"Paradoxally it does not mean that apache is faster than nginx it just means that on 1 2 3 ." from question Will a Multi-Core / Multi-Proc help performance on a web server? "When i was googling info on nginx it appears to be faster than apache and works well in serving static pages" from question Is NginX good for Forums? Is NginX really fast? "Nginx is typically faster than apache but with a low request server it hardly matters" from question Apache is slow with concurrent requests "Very fast static assets nginx is faster than apache at serving static assets css js images ... and uses very little memory to do so" from question Magento: Lighttpd vs Nginx "I know nginx has lower memory footprint and little faster than apache in serving static files" from question Pyramid - apache + mod_wsgi or nginx +uwisgi or nginx +pserve + supervisord "Nginx will definitely work faster than apache" from question Nginx/apache/php vs nginx/php "As an added benefit nginx can also serve static files much faster than apache and nginx also uses much less ram and can handle much more connections" from question Flushing the HTML document early - with ini_set( 'zlib.output_compression','ON')? "Nginx works great by itself and will likely be much faster than apache" from question Nginx only or Nginx(reverse proxy) + Apache "I have recently read that nginx is faster than apache" from question Apache + php-fpm vs Nginx + php-fpm "You can serve it from for example nginx varnish which are usually faster than apache" from question Which is faster, plain HTML or stored HTML from database? "For example nginx is considered faster than apache and a nodejs application is considered faster than a php application" from question Why is async code considered so much faster than synchronous? "For static file serving i found nginx performance lot faster than apache" from question Which server is best suitable for image hosting? "Nginx is faster than apache handles slow clients better and is generally easier to use" from question OS X: Development & Production Deployment for RoR with Apache and Passenger "There seems to be a consensus that nginx serves static content faster than apache" from question Apache, Nginx, and static content "I read that nginx is faster than apache and i want to try it with some of the projects and leave the others with apache" from question Ubuntu server with RVM, Phusion Passenger, Apache and Nginx "Not only is nginx supposedly faster than apache at delivering static content but this also offloads your rails application for every image stylesheet javascript or whatever other static content" from question A route to serve static assets (like .jpgs, etc?) "I will add that i ve often heard that nginx is faster than apache for serving static files to the point that it s sometimes worth using nginx for static files and reverse proxying to apache for dynamic content" from question Is it a common choice to deploy an AngularJS app to a vanilla Apache HTTP server? "And finally from my experience nginx is faster than apache" from question How to run two instances of the same Play! Framework application? "Nginx â without any optimizations done â is much faster than apache" from question Nginx: Is it safe to use "open_file_cache" in this scenario? "Nginx is faster than apache and the configuration is easier" from question Symfony 2 performance optimisations "I ve read that nginx is faster for static pages but there are questions about its performance with php compared to apache s performance with php" from question Linux PHP Webserver + Apache or Nginx |
"For example nginx is much faster than apache" from question Key factors for designing scalable web based application "I am not an expert in deployment but in my experience nginx is much faster and more friendly to django compared to apache" from question Is there a way to speed up the authenticate function in django? |
"Important note i am not comparing the 2 web servers that is not the point of this site but generally they have comparable performance so if https in nginx is 10 times slower than apache i feel that something is wrong in my nginx configuration i want to fix it" from question Nginx https very high connect time and is much slower (32 times) than Nginx http & 12 times slower than Apache https |
"For me apache is easier to use but i prefer nginx as it is much faster" from question Build file server to upload files from IPhone and Mac using Raspberry Pie |
"I would really like not to run both apache and nginx i did switch everything to apache yet found it loaded my proxies slower than nginx" from question Nginx two server ports two php sites (help) |
"Nginx s configuration files are really simple and nginx s much lighter-weight than apache" from question Single PHP page hosting |
"Nginx is still faster and i might choose it but apache isn t asleep" from question Why use Apache over NGINX/Cherokee/Lighttpd? |
"Nginx is faster for static files but if you have a cdn there is no need to worry about static content;apache is a great server" from question Is Nginx + php-fpm is suppose be much faster than Apache + mod-php |
"Apache is more popular and has more features nginx is smaller and faster and has less features" from question Ruby on Rails Server options |
"Nginx s static file performance is better than apache;apache mpm-worker is much faster than mod-prefork if mod_php isn t needed" from question What is the best way to deploy a Pylons app? "Nginx would be easier to configure also it will be better than apache when it comes to serving static content like images and css files and so on" from question Is it an issue to run both apache and node.js |
"You can create custom controller to serve that files and use send_file mentod in send_file mentod with disposition inline also you may be interested to x_sendfile_header setting to serwe that files with apache nginx which is faster" from question Serving images from outside the public directory |
"Serving static files with nginx is much more efficient than with apache" from question Apache and Nginx both on port 80 |
"At least in the past when i evaluated tomcat is much slower at ssl than apache nginx isn t as fast with static content requires redeploys of the war file if you change static content and lacks the configuration options of the more commonly used http servers" from question Deploying Ember JS application in EC2 |
"Having deployed django behind both apache and nginx in windows i have to say that i found nginx to be infinitely easier;however since nginx is more of a static file server with excellent proxying capability i ran a separate wsgi server for the django app" from question Serve Django site using Nginx without proxy_pass |
Better uwsgi logfiles
Example |
---|
"How can nginx performs better than apache" from question Why nginx performs better than apache httpd server? "Nginx also happens to be better than apache at writing logfiles interestingly" from question Some fundamental but important questions about web development? "Also what makes nginx better than apache in this case" from question Nginx Vs Apache to solve load isseu on website "I want to move to nginx since it s better than apache" from question Nginx Mod_Rewrite all pages "Uwsgi is better if you are using nginx i find nginx far better than apache personally" from question Using django based mod_wsgi and raw python based mod_python together on same apache |
"Nginx vs apache makes apache better" from question Nginx only or Nginx(reverse proxy) + Apache |
"I think nginx is much better than apache" from question Reverse Proxy through Apache2 for Odoo 11 |
Php-fpm mod-php sense
Example |
---|
"But then apache s functionality is much bigger than just serving rack based apps;so apache s functionality makes sense to replace apache s functionality with something more lightweight for example nginx especially because you deploy apache s functionality once for every host you have" from question Apache+Passenger == HAProxy + Mogrel Servers (M/M/C Queue) |
"A server which reserves a thread or an entire process per connection such as apache with the usual mpm_prefork or mpm_worker keepalives are usually disabled entirely or kept quite short a few seconds;for an event-based server such as nginx which uses much less memory per connection the keepalive timeout can be left at a much higher value typically a minute or so" from question TCP Persistent Connections with HTTP? |
"Is nginx + php-fpm is suppose to do server operations much faster than apache + mod-php due to efficient usage of memory and other resources" from question Is Nginx + php-fpm is suppose be much faster than Apache + mod-php |
"And finally if you are beginning with docker etc i recommend to use mod-php with apache which is easier to setup than php-fpm with nginx considering php-fpm with apache makes no sense" from question Docker windows - change php.ini |
File picky names
Example |
---|
"Nginx is more picky about case of file names than apache" from question Codeigniter nginx 404 error |
"You could also try using caddy web server as a reverse proxy it is the simplest to manage that i ve come across and the config file is much simpler than apache or nginx" from question Apache - how to redirect to another server |
Mb ram memory
Example |
---|
"If you still want to run with less mb of ram then i d recommend nginx over apache" from question MySQL 5.7.27 can’t start |
"Also nginx uses a lot less memory than apache" from question Mod_fcgid: can't apply process slot for error |
Opinion works kalid-rafik
Example |
---|
"Here is a setup i use to redirect blog to a meteor server i don t use passenger with apache;this works but i must agree with kalid-rafik that nginx is a much easier solution" from question How to correctly set reverse proxy with apache2 for my meteor app |
"Nginx is actually quite a lot easier than apache in my opinion" from question Angular2 + Nginx Deep Linking/Routing Issue |
Front recommend end
Example |
---|
"Apache isn t really a typical setup for python in my experience;python webapps are usually daemons that are exposed to the public with a reverse proxy webserver in front nginx is very common" from question PHP devs that moved to Python, is the experience better? |
"I wouldn t recommend putting apache in front of node however;nginx is better but not really necessary anymore" from question How should I change my NodeJS - Apache setup in order to have the desired result? |
"Also nginx s configuration is much more flexible than apache and by having it on the front end it gives you a lot of flexibility" from question Will an Nginx as reverse proxy for Apache help on dynamic content only |
Others
Example |
---|
However my experience is that configuring it in apache is significantly more complex than configuring it in nginx and even with worker it still is not quite as efficient with nginx;disadvantages of moving to nginx - not many but things to keep in mind from question Apache or nginx ? I like to understand the basic working flow of Nginx , its advantage and disadvantage |
Nginx uses less memory than apache given the size of your setup i would definitely recommend that from question Which of these would be the best Ruby on Rails server setup? Servers like lighthttp and nginx can handle large amounts of traffic in much less memory than apache if you can sacrifice apache s power and flexibility or if you just don t need those things which often you don t from question Tactics for using PHP in a high-load site Also have a look at nginx for example it is fast and uses less memory than apache to handle client connections from question How to stop timed out ajax call using JQuery |
Id love to know how to solve this since using nginx sometimes is a better option than apache and having this issue with fuelphp framework and not being able to use this two great tools together is awful from question How to configure nginx rewrite rules for fuelphp framework? |
First of all i d like to point out that hiding what powers your web app isn t really worth the time or effort with that said if you really really want to there are a couple of things you could try changing the defaults of apache tell all behaviour with these directives assuming you are using apache not really familiar with nginx servertokens prod serversignature off php will add a x-powered-by http header if expose_php was set to on in your php.ini file from question Hide the technology behind the a web application Not totally familiar with nginx or apache log but i think most logs contain a timestamp an http request the document requested and status etc. and an ip address from question Monitoring website visit length with Nginx logs |
There are ways to improve apache efficiency by coalescing all your rules into a single htaccess or through the use of location blocks in the config;nginx is slightly safer due to packing less stuff that is built-in and requiring cgi processes for almost every mundane task however from question NGINX and APACHE together or only NGINX? |
On apache it runs as a plugin module just the way mod_php does;for nginx i m not sure from question Why does ruby rails need puma or unicorn? If you need to use 443 in production i highly recommend using apache or nginx to listen on the ssl port and proxy the traffic to your .net code from question How can i make HttpListener to listen on 443 on mac OS? I ve used apache passenger and nginx passenger on a vps and memory usage was better with nginx;i didn t do any benchmarks with my particular app but nginx just feels faster from question Phusion vs Mongrel for Rails application VPS Possible hack could be run apache nginx on that ec2 from question Linux curl command that can check the aws ec2 instance status check - 2/2 checks passed |
The switchover to nginx really had little to do with the rewrite rule and more to do with getting away from apache 2.2 default upstream version for centos however with nginx rewrite rules are more straight forward than apache s imo from question Apache rewrite - Virtual dir to php script |
Apache mod_php is much more stable and cleaner while nginx will often deliver http bad gateway error coded in 502 from question Do you know any reason to use Apache instead of Nginx? |
I m new to nginx and want to try it out since it apparently is much faster and less resource-hungry than apache but i can t see why this would be such a hard thing to achieve from question Can't get Apache-like multiviews functionality in nginx |
The syntax for nginx configuration is different but more clean than apache from question Magento Installation Issue (Install Not Being Found) |
Apache is more friendly configuration wise htaccess htpasswd rewrite rules etc nginx is fast in regard to static assets from question Linux PHP Webserver + Apache or Nginx |
In fact many dns and web host providers actually provide this functionality as a service and will host the equivalent of above configuration for you though not necessarily with apache;nginx is probably more likely for this purpose these days from question Remap domain.io to show as domain.com in address bar |
Apache s design is thread per client while nginx uses the reactor pattern meaning - nginx can handle much more traffic than apache as a web server about 50 times the number of requests from question Storing all JS/CSS in PHP? |
Nginx uses an event based non blocking single thread and the memory usage is relatively much lower than apache from question Is Apache blocking I/O? |
This is valid directive whether you use apache or not;you don t have to use it but you better do because nginx is very good at serving static files from question Should I have these directives in my Nginx config? |
I also know there is nginx and haproxy although i have never used either of them and have a lot more experience with apache from question Possible to load balance across nodejs servers using apache |
But you d be crazy to do so apache uses a thread per connection and websockets uses persistent connections using a whole thread per connection when you re expecting a lot of proxy websockets in apache is a waste of resources a non blocking proxy like nginx makes a lot more sense from question Play framework: Secure WebSocket with Apache |
I m about to try apache but most write ups suggest that this is worse than nginx at this job from question HTML5 Server-Sent Events prototyping - ambiguous error and repeated polling? |
It seems your apache is more busy than your nginx from question Nginx error recv() failed (104: Connection reset by peer) Apache is more flexable then nginx but it comes with a high price in performance from question Apache vs Nginx for Chat Web App |
You can have nginx take error response codes coming from apache in consideration and act differently by use of proxy_intercept_errors which combined with error_page can allow you to rewrite response codes error messages from apache to masquarade app failures as service unavailable;nginx will not alter the 500 from the app as long as it doesn t step on a problem contacting fetching data from apache from question HTTP response codes 500 vs 502 vs 503? |
Ulling numbers from thin air for illustrative purposes serving 10 000 simultaneous connections would probably only cause nginx to use a few megabytes of ram whereas apache would probably consume hundreds of megabytes if it could do it at all;nginx is faster at serving static files and consumes much less memory for concurrent requests because nginx is event-based it doesn t need to spawn new processes or threads for each request so it memory usage is very low from question How does nginx improve web server performance? |
Using your own server for authentication if you dismiss my advise to use the google-servers for authentication then the scope of the tagged issues is getting larger as server-configuration apache nginx ... and server-side programming-languages php python ... might be involved from question Gmail Add-On: Oauth not being triggered |
Nginx apache are general purpose web servers;apache does not know how to serve rack applications and puma doesn t know how to do a bunch of other things nginx apache do cgi scripts url rewriting proxies balancing blacklisting... rack is a library for ruby that accepts parsed http requests from an app server funnels them through a configurable stack of middleware such as session handling passing the request object to a handler and returning the response object the app server making web development in ruby easy from question What is rack in ruby? What is puma in ruby? Nginx does not have the 256 connection limit that apache does due to an asynchronous approach to handling connections;not sure what requirements your server has but a basic nginx swap from apache is pretty simple and can be done following step by step tutorials online like this one from question Long-polling with more than 200,000 client |
If apache is completely down you should be getting a 502 bad gateway because in your setup apache is the gateway for nginx;the same will happen if nginx does not like apache s response in a way when apache sends a response which has headers exceeding nginx s proxy_buffer_size yes you should be getting 504 gateway timeout when apache app is timing out in relation to nginx timeouts see point 2 from question HTTP response codes 500 vs 502 vs 503? |
In fact nginx can use select instead of epoll if you compile it with the --with-select_module option and i bet it will still be more efficient than apache from question Is 'epoll' the essential reason that Tornadoweb(or Nginx) is so fast? |
The fact that what you want to do works in apache as-is is more of a bug than a feature this works differently in nginx by design and in order to prevent a whole class of security vulnerabilities from question NGINX unescapes %2f to a forward slash. How can I stop it? |
This works but only in a default apache environment;nginx needs more configurations from question PHP flush don't work |
Much safer to have apache or also my preferred nginx listening on 80 and passing along the requests;nginx is friendlier for sockets as well and someday you ll want those from question NodeJS port proxy or Apache redirect - which is most efficient for my development workflow? |
Nginx apache both are nginx is faster response than apache nginx have different rewrite rule with laravel nginx is good choice nginx have fastcgi so you can use same like apache here is 1 understanding link sorry for my bad english hope this help you from question How to Nginx Cache works with Laravel? |
Anyway i prefer using nginx instead of apache you can set nginx to use sockets which is how puma starts by default and there are more tutorials for nginx+puma there s the config for nginx on that link too from question How do I get my website to display Welcome to Rails instead of Index of / in Ruby on Rails 5.2? |
Nginx is very fast much lighter than apache from question How to make Node.js Multi-tenant for websites on port 80? |
Apache assumes a leading forward slash;nginx does not from question Htaccess to nginx simple url rewrite conversion |
Mail.domain.com-le-ssl.conf generated by let s encrypt my apache2 virtual host config for reverse proxy mail.example.com.conf please note that my original apache2 config file is because i don t really need ssl encryption between apache and nginx the rewrite rule was added when i installed let s encrypt certificate on apache mail server for mail.example.com from question Using mailcow-dockerized with a dockerized Apache2.4 |
Hi everyone i need help with this i ve already set up nginx + php and it works great faster than apache my problem is how to setup a multiple projects in one ip from question How to Set Up Multiple projects in one IP in nginx |
Thus using keep alive on the apache side is pointless when using nginx in front of it;because though nginx doesn t implement keep alive it should drop the connections promptly as it will have no intention of reusing them so you shouldn t suffer if you do forget to turn of keep alive in apache when using nginx as front end from question Apache MaxClients when KeepAlive is Off |
If apache is not a requirement then you can use another server for example nginx;there is a tutorial for getting nginx running on an ec2 environment from question Using https with Django |
I have read that you need apache to run wordpress but this is false;nginx does not use .htaccess from question Confused about httpd, nginx and Vesta CP |
Nginx is quicker though honestly you ll struggle to see the difference except for very high volume sites and has quickly become the web server of choice for a lot of people if you don t have any specific need for apache for your code from question Node js with apache or nginx? |
Apache automatically sees the location header in the response and forces the response code to be 300-series if you haven t previously set a response code of your own;nginx does not do this -- it expects you set the proper response code yourself from question With nginx/php-fpm, location header sometimes ignored by browser. Why? |
I ve been attempting to upgrade to php 7.1 using phpbrew and elected to install it with nginx as i read everywhere that it was simpler than apache not that simple in my humble opinion from question Symfony2, phpbrew, nginx, php 7.1 and File not found |
We have a few clients who have very high traffic sites running apache slower than nginx with varnish in front of it and they get way more traffic than you are saying with little to no performance problems from question What would be a good auto-scaling and ELB configuration for a heavy-traffic Wordpress site on Amaon EC2? |
Apache has been the leader in web server ecosystem for 20 years and is much more popular however nginx is not without its fair share of advantages;while apache is a thing of the past nginx is the future of web apps and websites from question * (no title is found for this review) |