I've read this SitePoint blog post today where the author wonders about the popularity of IIS vs Apache as server software. There is Netcraft as a reliable source of course, but the question was more of "How about the big sites?" and examples of big sites are those in the Alexa ranking.
我今天已经阅读了此SitePoint博客文章,作者想知道IIS与Apache作为服务器软件的普及程度。 Netcraft当然是可靠的资源,但问题更多是“大型站点如何?” 大型网站的例子是Alexa排名中的那些网站。
So I took this as a challenge and hacked a quick script to get those stats.
因此,我将其视为挑战,并破解了一个快速脚本以获取这些统计数据。
The Methodology I took Alexa top 500 sites from here and made a request to each of them. I logged the "Server" header response. The top 500 sites are actually 499 - from 1 to 500.
方法论我从这里选出Alexa前500个站点,并向每个站点提出了要求。 我记录了“服务器”标头响应。 前500个站点实际上是499个-从1到500。
The execution Slow and painful. Some sites didn't respond at all. Some didn't want to show their server software either sending a blank "Server" header or none at all. To my surprise Yahoo! and Geocities send blank server headers.
执行缓慢而痛苦。 有些网站根本没有响应。 有些人不想显示他们的服务器软件,要么发送空白的“ Server”头,要么根本不发送。 令我惊讶的是,雅虎! 和Geocities发送空白服务器标头。
The analysis I take all the 499 sites, subtract N/As (non responding or blank server headers). Then I make a select on all servers matching "Apache" and all matching "IIS", as well as some of the others. Then I admire the percentages.
我进行了所有499个站点的分析,减去了N / As(无响应或空白的服务器标头)。 然后,在所有匹配“ Apache”和所有匹配“ IIS”的服务器以及其他一些服务器上进行选择。 然后我很欣赏这些百分比。
The results
结果
Some more raw data This is the result of a simple count on the different server header responses. Just as an idea how different they can be. It's available as a CSV and XML file.
更多原始数据这是对不同服务器标头响应进行简单计数的结果。 就像一个想法,他们可以有多大不同。 它以CSV和XML文件的形式提供。
Many thanks! ... to PEAR 🙂 Its HTTP_Request and DB packages made the coding possible in no time.
非常感谢! ......到PEAR 🙂其HTTP_REQUEST和DB包在任何时候作出的编码可能。
Tell your friends about this post on Facebook and Twitter
在Facebook和Twitter上告诉您的朋友有关此帖子的信息