Live data from Hacker News

Nginx reaches 33.3% web server market share while Apache falls below 50%

w3techs.com

61–70 of 190 posts

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#61
post #31

How much of nginx's growth is, do you think, due to it being "better" than Apache httpd (which it isn't, BTW. Apache 2.4 is easily as fast and scalable as nginx), compared to either (1) The aggressive sales and marketing of NGINX the company or (2) nginx fronting Apache httpd and thus "hiding" the growth of Apache httpd usage. But there are lots of Apache httpd haters, for some reason, and so they LOVE promoting the…

I would guess that so many people move before Apache 2.4, or in early day of 2.4, and they did not look back. And with them, all new site, or old site with pre-2.4, get upgraded toward nginx.

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#62

Nginx is the web server equivalent of programming languages with fibers (in a good way.) Is there anything that competes/a "next Nginx"?

I think it depends on whether you consider nginx primarily a reverse proxy or a web server.

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#63
post #20

Earlier quoted context omitted.

Why? Nginx is not a political statement or software nor does it benefit it's author's causes in any way. With that said, use caddy. Not for political reasons, just because it's awesome. https://caddyserver.com/

Caddy needs a decent networking library to compete with nginx, it cannot do that with crappy net package.

Go's net package is used by Google. In production. What's wrong with it?

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#64
post #60
post #30

This is kind of a weird statistic to try to analyze. So many uses of nginx are just the act of putting an Apache/IIS/etc site behind nginx, so technically, both servers still have market share but you only see nginx. It's just that nginx makes it so easy to do certain things, like supporting modern HTTPS, that you might as well add it to your stack rather than replace something.

As someone younger who never really used Apache, I don't see any reason to do anything with it instead of Nginx. Other than supporting "legacy" setups, whats the point of Nginx load balancing Apache? Configuring nginx is just so much more intuitive.

Probably a lot of mod_* uses like PHP applications that haven't been migrated to php-fpm or something, and JBoss/Tomcat/Websphere/Weblogic websites. You of course can just proxy all of these things with nginx, but it's probably not worth it for most companies.

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#65
post #60
post #30

This is kind of a weird statistic to try to analyze. So many uses of nginx are just the act of putting an Apache/IIS/etc site behind nginx, so technically, both servers still have market share but you only see nginx. It's just that nginx makes it so easy to do certain things, like supporting modern HTTPS, that you might as well add it to your stack rather than replace something.

As someone younger who never really used Apache, I don't see any reason to do anything with it instead of Nginx. Other than supporting "legacy" setups, whats the point of Nginx load balancing Apache? Configuring nginx is just so much more intuitive.

At $main_work, the reason is that there's a bunch of RewriteRules which last I checked simply couldn't be done by NGINX.

OTOH, Apache suffered from the "slow loris" attack, so the whole shebang ended up being nginx sitting in front of a few front-end apache instance kinds, which sit in front of a dozen or so backend apache instance kinds.

I find it interesting that although on those servers there are 12x more Apaches than NGINX, it might get counted as a server "using nginx"...

... and that's just because the whole she-bang sits under cloudflare, which reports Server: nginx-cloudflare ;)

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#66
Apache has historically been a giant swiss army knife that will do just about everything you could want, from redirect databases to cgi to php interpreters to crazy auth setups. It did all that while still being a reasonably good workhorse for static file serving (when properly turned and using the right worker model, event rather than threaded or process).

Nginx seems to have a different model. It does support a number of features but from what I can see it focuses on composing functionality with HTTP rather than adding more plugins.

Nginx seems to do a great job at being a load balancer and cdn-lite, and it seems like that's what the market wants out of a web server.

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#67

Apache has historically been a giant swiss army knife that will do just about everything you could want, from redirect databases to cgi to php interpreters to crazy auth setups. It did all that while still being a reasonably good workhorse for static file serving (when properly turned and using the right worker model, event rather than threaded or process). Nginx seems to have a different model. It does support a num…

I think you're correct, and Nginx does a nice job within that scope. I decided I wanted to learn it a bit, so I picked it for a project. I hadn't even stopped to think that I was reliant on WebDAV for editing that static content!

Long story short, I decided not to use any of the partial WebDAV implementations for Nginx and just use sshfs instead. It's so true that Apache is a swiss army knife, though.

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#68
post #31

How much of nginx's growth is, do you think, due to it being "better" than Apache httpd (which it isn't, BTW. Apache 2.4 is easily as fast and scalable as nginx), compared to either (1) The aggressive sales and marketing of NGINX the company or (2) nginx fronting Apache httpd and thus "hiding" the growth of Apache httpd usage. But there are lots of Apache httpd haters, for some reason, and so they LOVE promoting the…

It's not all about performance and scalability. Nginx is better, imo, because it has a better design and configuration.

How so? I agree that httpd's configuration language is "unique" but it is logical and easy to understand. And httpd's design is modular as the start, supporting dynamic modules LONG before nginx ever did, plus supporting various MPM mode, including prefork, threaded and event-based. So you can pick the right functionality and modules for your environ and use case? Maybe 10 years ago nginx had a "better design" but far, far from the situation today.

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#69
post #8

Earlier quoted context omitted.

Also has builtin letsencrypt automation and generally easier configuration, so for small sites it might be a better option than nginx.

I think their docs says that unless you expect to scale to multiple x 10 000 requests / second then it caddy might be worth trying. I went with it for the test networks at my job and liked it a lot.

And then when you do, you can use Nginx to reverse proxy N Caddy instances!

Re: Nginx reaches 33.3% web server market share while Apache falls below 50%

#70

Apache has historically been a giant swiss army knife that will do just about everything you could want, from redirect databases to cgi to php interpreters to crazy auth setups. It did all that while still being a reasonably good workhorse for static file serving (when properly turned and using the right worker model, event rather than threaded or process). Nginx seems to have a different model. It does support a num…

nginx is turning into much more than just a load balancer. Projects such as OpenResty (a full CMS built into nginx) and Kong (an API management service), are built right into nginx using Lua. We've done some minor nginx Lua extensions and are looking to offload activities such as JSON validation into the front-end nginx.

http://openresty.org/ https://getkong.org

Post reply on HN