Live data from Hacker News

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

w3techs.com

151–160 of 190 posts

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

#151

Earlier quoted context omitted.

There are very few justified usages that require to write maze of rewrite rules. Most people do it because they have no idea what they are doing and they never decided on a naming convention for their apps and domains.

What are some justified uses of rewrite rules?

Making broken links pointing at your site work (301), without breaking links to the correct URL.

Especially links on sites you have no control over.

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

#152
"Just to put that growth rate in perspective: this is 70 times the number of sites that switch to Node.js, another fast-growing web server."

I find it hard to believe this could be accurate considering the vast majority of Node.js deployments are also utilizing Nginx as a reverse-proxy in front of it. I think a large portion of nginx's uptake is actually due to Node.js' popularity.

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

#153

"Just to put that growth rate in perspective: this is 70 times the number of sites that switch to Node.js, another fast-growing web server." I find it hard to believe this could be accurate considering the vast majority of Node.js deployments are also utilizing Nginx as a reverse-proxy in front of it. I think a large portion of nginx's uptake is actually due to Node.js' popularity.

I put go & node behind nginx, so how does that count similar?

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

#154
post #10

Calling it. Nginx won because it's configs are not xml. Apache should have learned by now.

Aren't Apache configs something unique that has pieces that look like XML but actually aren't?

No, it's just sections defined by looking things and then key, complex value pairs

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

#155
post #149

Looks like Nginx has the highest usage in Russia. Why is that?

Creator of nginx is Russian. Which probably means good word of mouth marketing, good docs in their language, etc.

If I'm not mistaken he created it while working at/for rambler.ru which is one of the biggest Russian websites (it was serving 500 million requests per day at that time).

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

#156
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.

And nginx overwrites origin server headers; whereas most other gateways/reverse proxies don't https://trac.nginx.org/nginx/ticket/538

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

#157
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.

Agreed, I mean is a reverse proxy even a server? The number of people who use Nginx for load balancing is huge, so when they say people are switching to nginx from Node.JS, I'm just like: "Dude, I only use Nginx for my kubernetes ingress, with plenty of services behind using Node.JS rather than any monolithic everything server" So is my server Nginx, Kubernetes or Node.JS, or Python, or Java? :-/ I think this statist…

Nginx will overwrites your origin server headers https://trac.nginx.org/nginx/ticket/538 so for these stats it would get picked up as nginx even though its only forwarding

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

#158
post #64

Earlier quoted context omitted.

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.

PHP is definitely a huge chunk of the reason why nginx has taken over Apache. php-fpm with nginx is the defacto standard , and PHP is far more prevalent than a lot of people think. Apache's mod_php(X) vs. nginx+php-fpm isn't even a debate. If someone is currently using Apache+mod_php, they probably have a smaller product that will eventually have to switch to nginx+fpm in order to scale. While I imagine PHP is the si…

fpm is being dropped now that php 7 contains many of the improvements that made fpm popular. php_mod+apache with .htaccess turned off is the faster stack. Put a nginx server to server static content in front and that's the fastest stack going forward

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

#159
I am really surprised no one brought on the performance topic. Now I have been out of web programming for half a decade or more, but if my memory is not completely gone I remember that nginx was about an order of magnitude faster than apache under heavy load. Is it still the same nowadays?

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

#160
post #158

Earlier quoted context omitted.

PHP is definitely a huge chunk of the reason why nginx has taken over Apache. php-fpm with nginx is the defacto standard , and PHP is far more prevalent than a lot of people think. Apache's mod_php(X) vs. nginx+php-fpm isn't even a debate. If someone is currently using Apache+mod_php, they probably have a smaller product that will eventually have to switch to nginx+fpm in order to scale. While I imagine PHP is the si…

fpm is being dropped now that php 7 contains many of the improvements that made fpm popular. php_mod+apache with .htaccess turned off is the faster stack. Put a nginx server to server static content in front and that's the fastest stack going forward

FPM is being dropped? This is news to me, where can I read about this?
Post reply on HN