Live data from Hacker News

Nginx has replaced Apache as the most used web server among the top 10,000 sites

w3techs.com

41–50 of 76 posts

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#41
post #34
post #27

Earlier quoted context omitted.

You can configure Nginx to cache and serve html or as a load balancer. In these cases it isn't the "real" web server, and it's common.

I disagree. I don't care if nginx is in front of apache, varnish, or some ruby or python web server. If nginx is what serves the final request to the client, it's the webserver. Period. edit: nginx is the last mile. You can't say everyone in the USA has access to fiber because further upstream their traffic traverses a fiber network. Their last mile is DSL/Cable/etc. When it comes to the user experience, last mile is…

If you start calling things like varnish a web server you'll confuse a lot of people. You generally call them according to what role they serve in your stack, and for Varnish and at times Nginx, that is a reverse caching proxy.

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#42
post #37

Earlier quoted context omitted.

No. Because Nginx doesn't dedicate a thread or process to each open connection.

Doesn't that raise security concerns?

Yes, it requires a sandbox for things like PHP.

But it's limited to it. Most other web stacks come with their own sandbox. And Apache also puts PHP in a sandbox for unrelated issues.

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#44
I'm confused by this title and the article here.

The graph in the linked shows that "Apache is used by 60.5% of all the websites." while nginx is at 20.7%...

How could these numbers possibly mean that nginx has replaced Apache as the most used web server? When is 60.5% more than 20.7%? IS it opposite day?

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#45
There are different statistics with different methods and outcomes. For example the netcraft server survey over 975,262,468 sites shows a market share of Apache: 37.58%, IIS 33.41%, nginx 14.60%. Source: http://news.netcraft.com/archives/category/web-server-survey...

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#46
post #34
post #27

Earlier quoted context omitted.

You can configure Nginx to cache and serve html or as a load balancer. In these cases it isn't the "real" web server, and it's common.

I disagree. I don't care if nginx is in front of apache, varnish, or some ruby or python web server. If nginx is what serves the final request to the client, it's the webserver. Period. edit: nginx is the last mile. You can't say everyone in the USA has access to fiber because further upstream their traffic traverses a fiber network. Their last mile is DSL/Cable/etc. When it comes to the user experience, last mile is…

Depends, but from an application and development perspective, which I'm sure most are assuming here, no. If you can remove nginx and still serve your site/application, then nginx is not your web server. If nginx is acting as a reverse proxy or a cache, then that is all it is.

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#47
post #19

Earlier quoted context omitted.

Unfortunately too typical. You're keeping all the performance issues with a LA P stack (high resource-use variance going from low to high traffic), and merely adding layers in front. Unless you need an apachehttpd-specific feature, you should look into moving to a nginx + php-fpm setup.

You're being awfully presumptuous -- there's nothing to indicate the parent isn't already using an apache2+php-fpm setup. Not all apache2+php users are using mod_php (which is where performance woes come from).

Yeah, we are using apache2+php-fpm. The application behind is Drupal, which is supported on apache2 only (mostly) unfortunately.

I guess from a higher perspective this is a support resource vs savings from technical performance question, but my feeling is that right now the lack of support knowledge and experience is more painful than the performance.

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#48
post #34
post #27

Earlier quoted context omitted.

You can configure Nginx to cache and serve html or as a load balancer. In these cases it isn't the "real" web server, and it's common.

I disagree. I don't care if nginx is in front of apache, varnish, or some ruby or python web server. If nginx is what serves the final request to the client, it's the webserver. Period. edit: nginx is the last mile. You can't say everyone in the USA has access to fiber because further upstream their traffic traverses a fiber network. Their last mile is DSL/Cable/etc. When it comes to the user experience, last mile is…

By that logic, the webserver would be the last thing in front of the user, their router, their ISP, whatever...

Re: Nginx has replaced Apache as the most used web server among the top 10,000 sites

#49

I'm confused by this title and the article here. The graph in the linked shows that "Apache is used by 60.5% of all the websites." while nginx is at 20.7%... How could these numbers possibly mean that nginx has replaced Apache as the most used web server? When is 60.5% more than 20.7%? IS it opposite day?

You need to look at the legend. For the top 10,000 websites, Apache is used by 39.1%, and nginx is used by 39.2%.
Post reply on HN