Live data from Hacker News

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

w3techs.com

91–100 of 190 posts

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

#91
post #71

nginx is creating a name and market for itself as a reverse proxy, even though there are better solutions for reverse-proxies out there, everything from HAProxy to Apache Traffic Server to even Apache httpd. But this is an important market to have. Why? Because it allows for the perception that the "web runs on nginx" simply because all you see are the nginx web proxies and nothing behind that. So what are the server…

> So what are the servers behind nginx? 9 times out of 10 it is Apache httpd, and numerous instances of it at that. Can you cite a source for this? In my practice, the servers behind nginx are usually platform-specific application servers, such as Gunicorn or uWSGI for Python.

I think the idea is that if you count every single website on the web, a huge number of them are crappy little sites on shared hosting. Shared hosting usually relies on .htaccess rules, which are only valid under Apache.

Popular PHP CMS software also relies on .htaccess. Wordpress for example allegedly powers about a quarter of all websites, and auto-creates an .htaccess file when you enable pretty links, which basically everyone does. Drupal ships with multiple .htaccess files.

Sure it's possible to adapt this code into Nginx configuration, but there is really no reason to do that. It's far easier to set up Nginx in front of Apache and get most of the Nginx benefits that way.

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

#92
post #5

Netcraft's web server survey shows nginx at only 20%, and shows Apache dropping below 50% way back in August 2013. That's a big difference compared to w3techs and both sources should be taken with a pinch of salt. It's the 3rd chart on: https://news.netcraft.com/archives/2017/03/24/march-2017-web... Web server market share depends a lot on which sites you're looking at: are you checking the top X million sites or che…

In terms of server usage not based on websites, Shodan sees Apache with significantly more deployments than nginx:

- Apache httpd: 11,877,702 - nginx: 4,759,439 - Microsoft IIS httpd: 3,872,974

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

#93
post #80
post #71

nginx is creating a name and market for itself as a reverse proxy, even though there are better solutions for reverse-proxies out there, everything from HAProxy to Apache Traffic Server to even Apache httpd. But this is an important market to have. Why? Because it allows for the perception that the "web runs on nginx" simply because all you see are the nginx web proxies and nothing behind that. So what are the server…

> even though there are better solutions for reverse-proxies out there... Apache Traffic Server to even Apache httpd Really? Completely disagree. Just look at the configuration files for these vs nginx.

So your total criteria for what constitutes a "better reverse proxy" isn't performance, isn't lowest latency, isn't full HTTP compliance, isn't dynamic reconfiguration, or pluggable load balancing mechanisms but rather configuration files??

Sorry if I don't hold your opinion to that high a standard in that case.

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

#95
post #71

nginx is creating a name and market for itself as a reverse proxy, even though there are better solutions for reverse-proxies out there, everything from HAProxy to Apache Traffic Server to even Apache httpd. But this is an important market to have. Why? Because it allows for the perception that the "web runs on nginx" simply because all you see are the nginx web proxies and nothing behind that. So what are the server…

> 9 times out of 10 it is Apache httpd, and numerous instances of it at that.

A lot of your post is not wrong, but that statistic is just not right at all. Less that half of the time we see apache instances behind NGINX, and it's mostly because it's legacy, and hard to move away from it. The other half of the time it's application specific web servers, or other NGINX instances.

Source: Worked for Cloudflare and now work at NGINX

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

#96

This is your periodical friendly reminder that Igor Sysoev, principal author of nginx, is strongly pro-Putin and anti-Ukraine. You might get a taste of his views at his personal website, http://sysoev.ru (in Russian; use Google translate). So, if such things matter to you, you might consider choosing some other web frontend.

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/

"Nginx is not a political statement or software nor does it benefit it's author's causes in any way."

Sure it is. Loving nginx and hating Apache httpd (especially) is short hand for telling everyone just how high-tech and up-to-date one is. "Still using Apache? Way to go Grandpa! Get with the times... all the cool kids use nginx nowadays!".

How about choosing the best solution for the job at hand, coolness and hip-factor regardless ;)

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

#97
post #82
post #60

Earlier quoted context omitted.

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.

nginx is much more simple than full-service servers like Apache. Which is good if you want to do something easy fast (like terminate TLS, proxy, load-balance, simple redirect, simple header munging, etc.). And not good if you want to do something more complex and get into learning how nginx rewrite rules really work (totally not obvious), how if and other predicates really work (multiple articles in docs suggest it's…

A good reason to use nginx (or better HAProxy), is to stop people from writing endless mess of redirect and rewrite rules.

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

#98
post #71

nginx is creating a name and market for itself as a reverse proxy, even though there are better solutions for reverse-proxies out there, everything from HAProxy to Apache Traffic Server to even Apache httpd. But this is an important market to have. Why? Because it allows for the perception that the "web runs on nginx" simply because all you see are the nginx web proxies and nothing behind that. So what are the server…

> So what are the servers behind nginx? 9 times out of 10 it is Apache httpd, and numerous instances of it at that. Can you cite a source for this? In my practice, the servers behind nginx are usually platform-specific application servers, such as Gunicorn or uWSGI for Python.

Or tomcat / jboss / websphere for Java applications.

There really are a lot of platforms.

Equally, there is a truckload of LAMP sites out there (Linux Apache MySQL Php) to give Apache the edge on pure quantity. It's been the standard for personal site hosting and forums for two decades. That's a long lasting effect. That's not where there is value and work for developers though.

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

#99
post #93
post #80

Earlier quoted context omitted.

> even though there are better solutions for reverse-proxies out there... Apache Traffic Server to even Apache httpd Really? Completely disagree. Just look at the configuration files for these vs nginx.

So your total criteria for what constitutes a "better reverse proxy" isn't performance, isn't lowest latency, isn't full HTTP compliance, isn't dynamic reconfiguration, or pluggable load balancing mechanisms but rather configuration files ?? Sorry if I don't hold your opinion to that high a standard in that case.

You're right, we should build a CloudFlare competitor based on ATS and take over the market.

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

#100
post #93
post #80

Earlier quoted context omitted.

> even though there are better solutions for reverse-proxies out there... Apache Traffic Server to even Apache httpd Really? Completely disagree. Just look at the configuration files for these vs nginx.

So your total criteria for what constitutes a "better reverse proxy" isn't performance, isn't lowest latency, isn't full HTTP compliance, isn't dynamic reconfiguration, or pluggable load balancing mechanisms but rather configuration files ?? Sorry if I don't hold your opinion to that high a standard in that case.

Configuration files are important. You understand that once you have to untangle thousands upon thousands of lines of apache configuration. Luckily for me, that can pay a decent rate :D

In the context of load balancing, on the performance + latency + load balancing mechanism + configuration files criteria, Apache is the worst by a huge margin compared to both HAProxy and nginx.

Post reply on HN