Slashdot Mirror


Nginx Overtakes Microsoft As No. 2 Web Server

tsamsoniw writes "With financial backing from the likes of Michael Dell and other venture capitalists, open source upstart Nginx has edged out Microsoft IIS (Internet Information Server) to hold the title of second-most widely used Web server among all active websites. What's more, according to Netcraft's January 2012 Web Server Survey, Nginx over the past month has gained market share among all websites, whereas competitors Apache, Microsoft, and Google each lost share."

89 of 340 comments (clear)

  1. Finally! by Voyager529 · · Score: 4, Funny

    something that's actually legitimate for Netcraft to confirm!

    1. Re:Finally! by cwj123 · · Score: 5, Funny

      Wait.. BSD isn't dead?

    2. Re:Finally! by Anonymous Coward · · Score: 5, Funny

      Wait.. BSD isn't dead?

      They changed its name, they call it "Mac OS X" nowadays.

    3. Re:Finally! by Stalks · · Score: 3, Funny

      Woosh.

    4. Re:Finally! by williamyf · · Score: 3, Informative

      No, MacOS X is a heavily modified MACH 3 os Microkernel, running a BSD server in Userland**.

      The Server in userland may as well be BeOS, ReactOS, Haiku, or, for that matter, even WinNT.

      So no, BSD is BSD, MACH is MACH, and MacOS X is Mach running a BSD Server in userland.

      ** A similar arrangement, and probably inspired by Mach is the "personalities" of WinNT (for those who rememeber there were the DOS personality, OS/2 Personality, Posix personality and Win 32 Personality).

      --
      *** Suerte a todos y Feliz dia!
  2. Quality by Anonymous Coward · · Score: 5, Insightful

    Nginx is a great product. Not surprised.

    1. Re:Quality by theshowmecanuck · · Score: 3, Interesting

      Time for some legitimate competition for Apache, it's been a long time. A bit of competition, which they haven't had much of could help them too. I am curious if it is easier to configure than Apache, and how well does it integrate with a JEE containers for serving the static content?

      But what a fucking name though. :) I found out it's supposed to be pronounced engine-x. Until I found out I called it enjinx. Reminds me of that movie 'That Thing You Do' where the band called themselves the Oneders at the beginning and everyone called them the 'oh-nigh-ders' or 'oh-need-ders'. Then they got a manager and he forced them to change it to the Wonders because it didn't look garbled. So I say, why not just call it EngineX. It still sounds cool and doesn't have that annoying 'I'm trying to look cool' thing going at the same time. Regardless, sounds like a good product.

      The only thing that makes me dubious is that they're based in Russia, I hope Putin and his boys don't have a back door into it. But America is starting to look no better than Russia these days in terms of a government that actually cares about the people. Have you checked out the NDAA that Obama signed this week? It lets the American military arrest civilians inside America (heck Fox news AND democrat supporters are all screaming bloody murder about this one). So on second thought I think I'll give this jinx thing a try.

      --
      -- I ignore anonymous replies to my comments and postings.
    2. Re:Quality by stanlyb · · Score: 2

      you have the source code, so what is the problem!!!

    3. Re:Quality by telekon · · Score: 5, Interesting

      1) Hell yes, it's easier to configure than Apache. Has most of the plugins you could want from Apache, whilst being much more lightweight.

      2) I'll echo the other comment here, YOU HAVE THE SOURCE CODE. Worry about backdoors in IIS from the U.S. Gov't., nginx has way more eyes on it.

      3) You eventually figured out the pronunciation. Most of the people I know that use GNU/Linux and LaTeX ca't pronounce GNU or LaTeX, but they work great so they get used. What's the problem?

      --

      To understand recursion, you must first understand recursion.

    4. Re:Quality by exomondo · · Score: 5, Funny

      So I say, why not just call it EngineX.

      Just be thankful it's not named Libre Nginx.

    5. Re:Quality by msauve · · Score: 2

      "Nginx is a great product."

      Strange that 99% of the server errors I see report themselves as being from nginx. I guess there's a conspiracy against it.

      (although anything with a config less obtuse than Apache can't be all bad)

      --
      "National Security is the chief cause of national insecurity." - Celine's First Law
    6. Re:Quality by Anonymous Coward · · Score: 4, Insightful

      The only thing that makes me dubious is that they're based in Russia, I hope Putin and his boys don't have a back door into it.

      Right, because the evil Russians can easily hide a backdoor in the source code. You're much safer using software made by a company that obeys the NSA.

    7. Re:Quality by harperska · · Score: 2, Insightful

      Having never heard of the server in question until this /. article, when I read the summary my mind parsed the name as alternately 'neh-GIN-ex' or 'en-GIN-ex' with 'GIN' pronounced like in 'begin', not like the drink.

      Using a solitary 'N' as a syllable at the beginning of a name is ambiguous as to whether the implied vowel should be at the beginning or the end. For example, when I first saw its name printed, I thought the graphics card manufacturer was pronounced 'neh-vid-ee-ah'.

    8. Re:Quality by man_of_mr_e · · Score: 4, Interesting

      I am quite surprised. nginx may be a good product, but it's also lacking a lot of functionality that a web server used as a load balancer or cache should support. For example, it doesn't support HTTP 1.1 to the backend, thus it can't do name based virtual hosts on the servers it caches.

      I *WANTED* to use nginx for a large multi-tennant website we were building, but it didn't support it.

    9. Re:Quality by MurukeshM · · Score: 2

      A consequence of NCurses?

    10. Re:Quality by GP1911 · · Score: 5, Informative

      They're usually backend errors, nginx is often used as a reverse proxy.

    11. Re:Quality by amorsen · · Score: 4, Informative

      I don't use nginx, but:

      By default, the Host header from the request is not forwarded, but is set based on the proxy_pass statement. To forward the requested Host header, it is necessary to use:

      proxy_set_header Host $host;

      I haven't heard of a web server which refuses to accept Host headers just because the client sends HTTP/1.0 instead of/1.1.

      --
      Finally! A year of moderation! Ready for 2019?
    12. Re:Quality by garaged · · Score: 3, Interesting

      I actually did the test, passed all my local config from apache to nginx, the config approach is quite different, it took me like 3 day of getting it 30-60 minutes to config ngix all the things that apache had working but the final config was about 20 lines long, oppossed to a much bigger apache config that has taken year to "master".

      Needlss to say, been happy using nginx for a couple of months now on local testing env., still neeed to port production sites :)

      --
      I'm positive, don't belive me look at my karma
    13. Re:Quality by MarkRose · · Score: 3, Informative

      I'd recommend HAProxy. It's twice as fast as Nginx is for load balancing, it's just as stable, and it supports more advanced balancing than simple round-robin.

      --
      Be relentless!
    14. Re:Quality by mrchaotica · · Score: 2

      Hey, I mispronounced it so bad I thought Velma was their spokesperson!

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    15. Re:Quality by micheas · · Score: 3, Informative

      In my somewhat limited experience the place that nginx really shines is ssl.

      I am prone to putting varnish on 80 and nginx on 443 with something heavy on the back end to spit out the dynamic content to the reverse proxies,

    16. Re:Quality by Cyberax · · Score: 2

      In Russian it's usually pronounced with unambibous 'n' followed by 'g' as in 'begin'.

      However, the author's intention was to make it sound like 'engine-x'.

    17. Re:Quality by jbolden · · Score: 2

      nginx uses a different strategy for how it utilizes hardware. It is not so much a configuration problem as a density problem. For things like webhosting companies, which are a huge percentage of websites, nginx cuts costs.

    18. Re:Quality by TheRaven64 · · Score: 3, Informative

      Most of the time you see a server error, it means that the web server is working but something else (often the database, more often the fastcgi or whatever) has failed. It's when you don't see any error that the web server itself is broken.

      Since Apache 1.x is now officially unsupported, OpenBSD has imported nginx into the base system and it will be the included web server in a near future release. I've been using Lighttpd for a few years because it was lighter-weight and easier to configure. Development seems to have stalled in the past couple of years though, and nginx looks like a promising alternative.

      --
      I am TheRaven on Soylent News
    19. Re:Quality by asdf7890 · · Score: 3, Insightful

      You could equally say you see a lot of Apache errors because of broken PHP code, or people sending you mistyped links (hint: that 404 error may not be the web server's fault).

      nginx is very often used as a front-end to code writting in other systems like node.js, rails, and so forth: nginx serves static files directly and the other systems serve dynamic content. If the back-end is too busy (or actually broken in some way) nginx won't be able to drag dynamic content from it and will have to report an error instead.

      Most sites are configured to hand out a generic 500 "server error" instead of anything more specific like "some fool missed a semi-colon near line 328", as giving out meaningful internal error messages on public facing interfaces is considered a potential security problem (it can make injection flaws easier to find), but don't have custom message HTML so said messages have "nginx" plainly visible on them, so I can understand some confusion on this point (though the same thing affects other web servers too, obviously).

  3. market share v. reality by girlintraining · · Score: 5, Interesting

    I'm firmly convinced the main reason IIS is even in the top 10 is because so many large corporations sign secret agreements with Microsoft to get discounted software in exchange for not using "free" or "open source" software. No joke -- I am working at a company right now where it is banned, and the only reason given is either that "info security" said so, or "legal" did. But when pressed, nobody can quite identify why. It's just policy, and nobody questions it. IIS' market share is vastly inflated; If it weren't for these clandestine agreements, I sincerely doubt it would be deployed very often, even WITH all the MS tech tie-ins, there's too many compelling reasons not to use it. Even Microsoft doesn't use it on it's major websites because it doesn't scale and it is prone to failure.

    --
    #fuckbeta #iamslashdot #dicemustdie
    1. Re:market share v. reality by Kalriath · · Score: 4, Insightful

      Bullshit. Microsoft uses it on every site they have. The only reason that "web server identification" surveys like Netcraft say they run Linux is because, like all large websites, they utilise the services of a CDN such as Akamai.

      And there are no "secret agreements". Most of the time the company forbids such things is because there is no support, or because there is no ability of the in-house technical support to provide assistance with it. We're a very large IT company here and we have maybe 3 RHEL servers (because Linux was the best option for the task) and a couple of thousand (including virtual) Windows servers. (There's also about 2 Solaris servers, 4 or 5 Oracle Linux servers, a SCO Unix server and 2 or 3 HP-UX servers). None of this is due to any "secret agreements". It's all because there's one person trained to work with Unix based systems, and about 8 to deal with Windows. We utilise quite a large number of open-source packages across our infrastructure if it's the best tool for the job.

      --
      For a site about things like basic rights, Slashdot users sure do like to censor "dissent".
    2. Re:market share v. reality by Anonymous Coward · · Score: 5, Informative

      In my last job, we had a client with an all Windows environment. We're talking 2 DCs, a file server, an exchange server and a dedicated IIS server on the other side of the firewall and off the domain.

      One day, they decided to revamp their static HTML website (this was a government department trying to justify their existence, IT wasn't exactly at the top of their list). We talked to the outfit doing it, who told us they were using PHP. Great, I though. We can get rid of an old and outdated Windows server and replace it with a nice, lean little Linux box. Nope, I was told to install the PHP ISAPI module on IIS, because "we were a Microsoft shop", even though this server was quite literally doing nothing but serving up HTML and chewing up an unnecessary Server 2k3 license. So after much fighting, and arguing to explain that we may as well NOT go through the trouble trying to set up and debug PHP as FastCGI, another guy went behind my back and stuffed up the install, leading to me wasting 3 or 4 hours rolling it back and installing it properly. Anyway, it's all smoothed over, until I get the zip file I've been promised by the "website makers". It was indeed a website, 10 or so DreamWeaver files with the extension renamed to PHP. No Drupal theme, no Joomla install, nothing. -.- God I hate the people in this industry that like to sell themselves as professionals

    3. Re:market share v. reality by poetmatt · · Score: 3, Insightful

      You kidding?

      Why do you think live365 exists?

      It's that exact agreement. They don't say "don't use free or open source software" they just say "don't use any of our competition". It throws in the whole microsoft suite (office, sharepoint usually in the face of wikis or better solutions, live365, etc), always with the argument of "we have a MS specialist to help you migrate" (even if that won't fix problems).

      agreement cost = substantial.
      cost of all the microsoft stuff non-agreement = easily 10x as much.

      So you see corporations sign up for this agreement as fast as possible if it's a good MS sales rep, even if it's a horrible long term outlook as any company smart enough to look down the road would know you never, ever want to rely on a single vendor for everything as that's a single point of failure.

    4. Re:market share v. reality by icebraining · · Score: 4, Insightful

      Even Microsoft doesn't use it on it's major websites

      curl -v www.microsoft.com
      Server: Microsoft-IIS/7.5
      X-Powered-By: ASP.NET
       
      curl -v www.hotmail.com
      Server: Microsoft-IIS/7.5
      X-Powered-By: ASP.NET

      What sites are those, exactly?

    5. Re:market share v. reality by epiphani · · Score: 5, Informative

      There's some truth to this.

      Several years ago, GoDaddy switch all of their domain parking to IIS, explicitly to get microsoft's numbers up. Throw 10,000 cnames pointed at a single machine serving up parking pages, and boom - 10,000 websites running IIS.

      --
      .
    6. Re:market share v. reality by ATMAvatar · · Score: 2, Insightful

      You mean like all the press Microsoft got for the very same behavior with Windows and Internet Explorer prior to US v. Microsoft?

      Putting your trust in the media to inform you of anything beyond celebrity news or Republican primaries imitating reality TV is foolhardy.

      That said, it would be nice if the GP provided more than flimsy personal anecdotes.

      --
      "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
    7. Re:market share v. reality by Daniel+Phillips · · Score: 4, Funny

      We're a very large IT company here and we have maybe 3 RHEL servers (because Linux was the best option for the task) and a couple of thousand (including virtual) Windows servers.

      Wow, it must suck to work where you work. Could you please tell me the name so that I may have nothing to do with it?

      --
      Have you got your LWN subscription yet?
    8. Re:market share v. reality by Zalbik · · Score: 4, Insightful

      What the heck?

      The office live 365 agreement says nothing about not using competitors software.

      I think you need a new tinfoil hat...

    9. Re:market share v. reality by hcs_$reboot · · Score: 2

      $ curl -v www.skype.com
      HTTP/1.1 302 Found
      Server: Apache


      Too new, maybe...

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    10. Re:market share v. reality by Anonymous Coward · · Score: 5, Insightful

      The deals were public knowledge. The OEM deals of the time that resulted in the court cases were actually legal until MS was declared a monopoly. Companies have always made such deals and continue to make them, they were not anything special and only become a problem under monopoly rulings.

    11. Re:market share v. reality by parlancex · · Score: 3, Insightful

      ...go through the trouble trying to set up and debug PHP as FastCGI...

      I think it's funny how common it is for anyone who mentions working with Windows professionally on Slashdot to be called out for being inexperienced or some kind of unauthentic system administrator with no real skills, but no doubt there are just as many who consider themselves experienced *nix system administrators who I could make fun of for being inept at basic Windows administration tasks.

      Anyway, there are plenty of good reasons that web server should have been a Windows box. Even if it wasn't joined to the domain by switching that box to Linux they would lose the ability to leverage their existing update (SUS) and backup infrastructure. Also, the cost of a Windows license for a small shop like that would pay for itself probably 3 times over if they had to even try to get some kind of professional support for the Linux box even once.

    12. Re:market share v. reality by SadButTrue · · Score: 4, Insightful

      This has probably always been the case. However, using .NET means buying the entire Microsoft stack.

      At my last job I wrote an entire back office in Java. When my company merged the decision was made, over my vehement protests, that we would recode in c# just to support a thick client that was the bread and butter of the traders at the other company. Literally everything had to be moved just because it had been marginally easier to code a desktop app in c# initially.

      Microsoft makes some good stuff, they really do. But since MS stuff only works well, or at all, with MS stuff you may end up taking a heavy does of shit along with the good.

      --
      grape - the GNU free, open source rape
    13. Re:market share v. reality by Anonymous Coward · · Score: 5, Informative

      Actually www is fronted by reverse proxies running on linux (you can check with nmap). IIS apparently can't handle the load by itself.

      And, hotmail took a long time to convert to M$. They tried once, then had a two week outage since M$ didn't scale worth a shit. They rolled back to Solaris, and kept it that way for a _long_ time.

      Fun fact. Microsoft also used sendmail on sun boxes for internal mail for a long time after exchange was introduced. M$ couldn't get their own software to scale to an enterprise as large as their own.

    14. Re:market share v. reality by Anonymous Coward · · Score: 5, Funny

      Wow, it must suck to work where you work. Could you please tell me the name so that I may have nothing to do with it?

      Microsoft Corporation, Redmond WA

    15. Re:market share v. reality by Dynedain · · Score: 5, Insightful

      Also, the cost of a Windows license for a small shop like that would pay for itself probably 3 times over if they had to even try to get some kind of professional support for the Linux box even once.

      A Windows license doesn't magically come with professional support. And honestly, if you need professional support for a server *NIX is going to cost you the same as an equally competant Windows admin.

      If you can't handle management of a web server in-house with qualified staff, you should move to a hosted solution. It will cost less regardless of OS choice.

      --
      I'm out of my mind right now, but feel free to leave a message.....
    16. Re:market share v. reality by LordLucless · · Score: 2

      I need support for a specific issue and I open up the yellow pages and look at my options there are going to be way more options for me that will be less expensive if I need to hire someone to take a look at a Windows server.

      And most of those will be sixteen year old kids who think that the fact that they know how to find the control panel qualifies them to administer a windows server.

      If you're looking for qualified, certified, experienced administrators, there are plenty in both worlds. The BSDs and Linux have dominated the server market for a long time; there's a very large pool of talent to draw from.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    17. Re:market share v. reality by wvmarle · · Score: 2

      And there are no "secret agreements". Most of the time the company forbids such things is because there is no support, or because there is no ability of the in-house technical support to provide assistance with it.

      There is a difference between white-listing certain applications because that's what a company decides to support, and adding to this list whenever there is a need, and a blanket ban on free or open source software where it's banned for being free and/or open source.

      The first I can totally understand. You can't support just everything.

      The second totally not. There is no reason why a software packed becomes easier to support by an IT department because the source code is not available.

    18. Re:market share v. reality by RubberMallet · · Score: 2

      You haven't been paying attention.... have you?

      Microsoft was caught out blatantly bribing the ISO guys (and it was widely reported in the press) to pass the OOXML standard.

      Microsoft has been caught out over and over signing deals with companies to be the exclusive OS provider... and it's been reported in the press.

      I've worked in 2 companies who had these "clandestine" deals with Microsoft where the company would lock out ANY competing products in return for deep discounts or even free software and support.

      My mother has run a SOHO IT company since 1990... and guess what, even she was offered and accepted a deal with Microsoft (due to sales volumes) to be 100% exclusive to MS... the deal included recycling software on updates to the local school system, ensuring that they also got MS only, and Linux was banned in the schools as part of the agreement to get free MSO and MSWindows licenses.

      In other words... it happens... it's not FUD.

    19. Re:market share v. reality by JasterBobaMereel · · Score: 3, Insightful

      You have 8 people that deal with windows servers because you have a lot of windows servers

      You have a lot of windows servers because you have 8 people that deal with windows servers ....This is why windows is still popular

      --
      Puteulanus fenestra mortis
    20. Re:market share v. reality by tiedemann · · Score: 2

      ...and it works well with nginx http://www.mono-project.com/FastCGI_Nginx

    21. Re:market share v. reality by am+2k · · Score: 4, Insightful

      Unlike smelly hippies, they're not going to trash a perfectly good service just because of rah rah candy ass confusion of software and ideology.

      I guess you weren't around yet when they switched Hotmail from BSD to Windows?

  4. Wow, never even heard of that one by Nursie · · Score: 4, Insightful

    I've used a load of web servers in the last few years - an early verion of IIS when I had only windows many years back, apache, lighttpd, thttpd, netscape web server (showing my age) and various others... but I didn't even know this was out there.

    Suppose it just shows how out of the loop I am these days. Computer stuff covers a vast field these days.

    1. Re:Wow, never even heard of that one by bradgoodman · · Score: 4, Interesting
      I was going to say the same. So I was pretty surprised. From what I am reading, it is more of a "front-end" system for web servers, that does things like caching and load-balancing. So I guess it sort of depends on ones definition of "web server".

      I was also going to speculate/wonder if it was one of those "rigged" deals, like a few years back when IIS was declared as "overtaking firefox" and becoming #1 because "most web sites on the web used it". The actual reason was that GoDaddy (which hosts a vast majority of "parked" domains) was paid-off (or "otherwise incented" by Microsoft to switch to IIS. So when you considered a "www." to be a "unique site", and 99% of "unique sites" to be garbage parked-domains, IIS was not the leader.

      So, I wonder if some other bizarre statistical work is at-play. For example, does someone like Akamai, who hosts a lot of other people's sites, use Nginx to skew these numbers??

    2. Re:Wow, never even heard of that one by asserted · · Score: 4, Interesting

      no, this is genuine. it has been steadily gaining popularity over the past several years.
      nginx is being developed by a russian guy who up until recently was working (as a sysadmin, apparently) for one of the major russian web portals where nginx originated as an in-house project first but was open-sourced. the guy has now left the company (which has been slowly dying anyway) and incorporated an llc or something, focused on nginx. it was already quite popular in russia 5-6 years ago (when i was still living there).

      nginx is an efficient event-driven front-end server, quite often used for loadbalancing in front of traditional apache or tomcat or whatever other backends, but in a simple case of a LAMP server it can be hooked up directly to PHP via FPM or FCGI.
      config syntax is quite expressive, with quite advanced uri / header - based rewriting capabilities. there is even a built-in Perl interpreter for more advanced use (which tends to be abused by people who forget what being an event-driven server means by sticking logic in there... oh well, people use things like node.js too *shudder*).

    3. Re:Wow, never even heard of that one by gr8dude · · Score: 2

      > oh well, people use things like node.js too *shudder*
      Can you elaborate on that? What is the matter with node.js?

  5. Google Icon by Anonymous Coward · · Score: 4, Interesting

    Why is the Google icon on the post when its MS that got overtaken. Is Nginx run by Google?

  6. Re:Nginx is not a website, but rather a webserver by viperidaenz · · Score: 2

    Perhaps they mean websites, because its impossible to tell how many different webservers host a specific website. If I have 1,000,000 IIS servers behind a load balancer hosting a single website, it would be counted as 1, not 1,000,000.

  7. Nginx is primarily a cache engine by Anonymous Coward · · Score: 2, Insightful

    The article and summary are misleading, typical slashdot. Typically nginx is used as a forward cache engine, often on the same box as apache. People typically put apache on port 81, and nginx on 80, and configure nginx to cache from port 81...

    Doesn't make it the number 2 web server. Yes perhaps the number 1 cache engine, but its generally not used as a web server.

    1. Re:Nginx is primarily a cache engine by telekon · · Score: 4, Informative

      Not always... for our Rails (and Sinatra) projects, we use nginx as the frontend/static asset server to a (pool of) Ruby-based application servers (mostly Unicorn). There's no Apache anywhere in the mix, and that has greatly reduced my migraines. Perhaps in some situation it makes sense to have nginx as a cache engine or load balancer for Apache, but in my world, nginx usually replaces Apache, rather than supplementing it.

      --

      To understand recursion, you must first understand recursion.

    2. Re:Nginx is primarily a cache engine by Scaba · · Score: 2

      Can you link us to your data?

    3. Re:Nginx is primarily a cache engine by Dr.Hair · · Score: 3

      I've dropped apache completely. I've got nginx in front of php-fpm (wigh fcgiwrapper/spawn-fcgi for things w/ legacy cgi like nagios/collectd) and uwsgi.

      You can easily find appropriate nginx rewrite rules for the major php apps like wordpress and menalto's gallery2. And for performance's sake it's all in the server config, so there isn't a disk access to read the .htaccess file to figure out if there are rewrite rules that need to be considered.

      It's even better for apps, like django, which keep in mind delivering static files out of the hands of the app server. And configuring nginx to serve static files instead of hitting app servers is a piece of cake.

      And for those really wanting max performance, there are plugins for direct access to memcache/postgres or even writing your web app directly in the config file with something like the lua plugin.

    4. Re:Nginx is primarily a cache engine by xiando · · Score: 3, Informative

      The article and summary are misleading, typical slashdot. Typically nginx is used as a forward cache engine, often on the same box as apache. People typically put apache on port 81, and nginx on 80, and configure nginx to cache from port 81...

      You do know there is something called mod_proxy for apache? Apache can be configured as a proxy or a web server. Nginx can be configured as a proxy or a web server. Your point is .. what, exactly? I use nginx and I use it as a pure web server. I do not know what everyone else uses it for, but you can't just go about assuming whatever.

  8. Great loadbalancer by Anonymous Coward · · Score: 5, Informative

    Nginx is a great loadbalancer for http which makes it quite suited as a frontend and thus getting counted by netcraft . There could be hundreds of apache servers behind it . E.g. on my boxes Nginx runs as a reverse proxy in front of about 20 different apache, tomcat, more Nginx, other servers that generate some kind of html. But these 20 will all be counted as Nginx while they actually run something different. So I beleive it is quite hard to actually say what Server actually is the most popular.

    1. Re:Great loadbalancer by butalearner · · Score: 2

      Good info, but not entirely complete. What I was told while researching webservers was that nginx also excels at serving static files. Personally I have a PogoPlug v2 serving three static HTML websites (static HTML is generated when I change something to make it look dynamic) plus a few binary files. I've never run Apache or any others, but the resource usage is extremely low, even under some load.

    2. Re:Great loadbalancer by inKubus · · Score: 4, Informative

      Yep, it's mostly used for front-end duties like connection pooling, load balancing, SSL offloading, gzip, that type of thing. If you're running PHP stuff, it's still debatable whether you want to go FCGI or PDM instead of Apache's built-in module. There are ups and downs in both cases and you'll have to see what works best for your site. At my company we use Nginx up front (with server type obfuscated) for SSL offloading and gzip and connection pooling. From there it goes into a varnishd cache on the same server (stored in 100% RAM) which handles the static stuff. Varnishd then forwards remaining requests to an L7 load balancer appliance type thing which then drops requests to each of 10 web "application" servers which are a combination of Apache with mod_php, Tomcat and Jetty Java servers. We've also used Nginx as an IMAP proxy and cache and it works quite well for that.

      Apache has a good architecture but it's horrible at handling a lot of simultaneous connections and recycling them (that will change in 2.4 but it's not out yet). Also, if you're using mod_php, over time each Apache process will take the total maximum amount of RAM your php process uses, and many of our PHP applications use 128-256M of RAM or more (data management type stuff). So you can run a server out of RAM if you're trying to maximize connections.

      Nginx can handle 10K connections on a little box with very little RAM due to the way it threads stuff. It's basically a copy engine and it's very fast. Varnishd can also handle a lot of connections and can serve up content straight from RAM in less time than apache takes to build a connection. That being said, Apache is reliable, and has I feel better logging at the moment and just more of everything. It's a reference implementation. It's actually fine for most purposes but if you're handling 1000 users simultaneously and they are making 10-20 connections each with various service calls and static downloads, you gotta have something that can pool the conenctions on the front end and handle static content or you're going to spend a lot of money on RAM. And if you're serving up static content with Tomcat, Tomcat is absolutely garbage. I think it has to boot the whole JVM to serve up your one file. If not that bad, it's still awfully slow, and it REALLY benefits from caching up front. BTW, Nginx does caching as well but varnishd seemed more mature and elegant.

      Now lastly, you can just go out and buy an F5 BigIP and it does all this stuff on specialized hardware (Ok, special board, intel chip) and it's out of the box. But even the little ones are $20K which is a lot of software dev hours and/or web server/database/storage hardware. Would be nice and fun to have but if you can't spend the money on hardware (and training!) the nginx/varnishd frontend is pretty much the best setup in my book at the moment. A little complex but once it's set up you just let it run. I made an internal nginx cache for all our internal sites, including some Java apps (e.g. Jira) and with requests going through the cache everything just flies. If you use sharepoint on IIS, you would be prettty stupid to not try a cache server up front, it's amazing. If nginx fixed mod_rewrite stuff to be the same as apache, it would probably be possible to make it into an application server, and we're going to get a test environment set up with php-fpm and see how it fares. We'll see how managable it is though.

      --
      Cool! Amazing Toys.
    3. Re:Great loadbalancer by styrotech · · Score: 2

      Tomcat is absolutely garbage. I think it has to boot the whole JVM to serve up your one file.

      No. When Tomcat starts up, that's your JVM boot right there. It stays running until you stop Tomcat. All the apps and files served by that Tomcat instance are served using the same JVM process. It will spawn extra threads for extra connections when required though.

      In fact most other web stuff uses a long running process like that. It's mostly only CGI or 'CGI-like' configurations and PHP that work by starting up from scratch for each request.

      But yeah, nginx is great :)

  9. dodgy by viperidaenz · · Score: 2

    the methodology for determining "Active Sites" only takes into account the structure of the html elements of the page. If the structure of the page stops changing its considered not active. javascript heavy sites don't require any html structure change to continue to provide changing content.

  10. ...and efficiency by hcs_$reboot · · Score: 4, Interesting

    I'm glad such a program, well designed and programmed in good old C, is rewarded with trust and confidence from more and more engineers.
    I have been using it for two years, serving several professional sites, and the transition from the initial Apache setup was surprisingly smooth.

    What I like in particular, compared to Apache :
    - fantastic performance gain, in terms of cpu and memory
    - maintenance gain: the configuration appears (at least to me) to be more "developer like", and easier to configure/extend with many options
    - load balancing is ... really a piece of cake

    The only drawback I (initially) found was the lack of a PHP embedded/module. But using php-fpm happened to be a good alternative, via a local port.

    --
    Slashdot, fix the reply notifications... You won't get away with it...
  11. Oh, lovely by gman003 · · Score: 4, Insightful

    Guess what class I had today?

    CIS311 - Web Server Management

    Guess what we use!

    IIS 7 and Windows Server 2008!

    Good thing I've run both Apache and lighttpd for personal experience. And taught myself C, C++, PHP, Lisp, Perl, Python, and a little bit of Assembly. And MySQL. And how to run Linux from the command line. And... what the fuck am I paying this college for, again?

    1. Re:Oh, lovely by Confusador · · Score: 4, Insightful

      And... what the fuck am I paying this college for, again?

      The ability to get your resume past HR and in front of someone who knows what any of that means. Sorry.

    2. Re:Oh, lovely by kamaaina · · Score: 2

      And this is why I thank god I just up AND DID Web Development and didn't shit my money down the toilet on a CS degree.
      So yes -- Why are you paying for college?

      For most Software Development, the "University of Google" is a far more cost and time effective education.

      Specializing in Web development is OK, not knocking that, but doesn't school also teach you about stuff you don't want to learn.

      Back in the day I didn't want to do Unix, but I was forced to write C programs on Unix box. Learned vi (and a little bit of edlin), how to grep and pipe, processes and spawning.

      Saves the day cause I understand how some of the stuff works.

      On ESXi someone tried to delete a folder that contained a running VM, I don't think there is anything on google on bringing that back, but knew it was still running, knew about file handles, VMDK was still there and was able to recover the VM. Would have been gone if they rebooted the host.

      Hardware class tought me about boot sectors and was able to recover a physical hard disk.

      Being forced to telnet to port 80 and 25 taught me about protocols.

      Yeah it was 4 years, but sure makes it easier to figure out stuff, pretty sure I am at a higher pay grade then other Sr Level Engineers in my company.

      Maybe you can spin up a web page faster then me, I would higher you, but they would trust me to go and talk to the different departments, come up with the requirements and schedule. No I am not a PM.

    3. Re:Oh, lovely by HopefulIntern · · Score: 2

      Yep, this. A CS degree these days is nothing more than a piece of paper that you often need to be considered for a job. It does not (necessarily) teach you the tools for the job. I am in the inverse situation to GP, my university taught only non-MS stuff (Java, Perl, LAMP) and my job now requires me to use Windows Server 2008 and IIS7. I had never even seen IIS before I came here..

    4. Re:Oh, lovely by gman003 · · Score: 2

      Oh, the teacher openly admitted that Microsoft set the requirements for the class. If we used anything else, even IIS6 on Server 2003, we'd lose our MSAA license.

  12. For a good reason: nginx really performs! by Anonymous Coward · · Score: 3, Insightful

    I am the main server admin for a very large website that has been running Apache for 10 years. Then, last year, after a period of tremendous growth, we began to encounter serious memory/CPU issues with Apache. I had been researching alternative, light webservers for a while, so after thorough research and testing, we made the transition to nginx overnight with resounding success. We've never looked back! It is very easy to configure, ridiculously scalable and highly extensible. There are plenty of how-to guides and recipes for those moving from Apache. Nginx seemed like a no-brainer. Apache is a great reference server; it has every bell and whistle imaginable, but at a cost. Our site uses PHP, so for those wondering about PHP integration, we use PHP-FPM. I'm generally pretty conservative and slow to change our architecture, but looking back, we made the right choice.

    1. Re:For a good reason: nginx really performs! by Terrasque · · Score: 2

      I'm not OP, but have a bit of experience with this..

      There are two things "against" apache:

      1. It runs either a thread or a process for each connection
      2. With all the fun stuff on, each thread / process take a lot of memory (especially with php enabled)

      The new breed of popular webservers (which nginx seems to be the most popular of) are event-driven, which means it can handle a silly amount of connections in one thread/process.

      This gives them advantages in a lot of situations. Especially for serving static files, doing comet stuff, and load balancing incoming connections to several backends.

      It's also worth noticing that the part where apache is good, generating dynamic pages, are increasingly being moved to specialized software for the language (ruby on rails, django, php-fpm and so on), which the webserver then talks to via fastcgi or similar protocol (or even normal http).

      Other event-based servers (from memory) : Cherokee, node.js, Tornado, lighttpd

      --
      It's The Golden Rule: "He who has the gold makes the rules."
  13. Re:IIS still wins by Anthony+Mouse · · Score: 3, Insightful

    You do understand that the corollary to that is the open source competitors save their users that same amount of money.

  14. Re:IIS still wins by Overly+Critical+Guy · · Score: 4, Insightful

    The metric "Apple aficionados" use is the one where the iPhone is the top-selling handset. For some reason, you're comparing a phone to an operating system. If you actually compare mobile operating systems, iOS has more share due to iPads and iPods.

    --
    "Sufferin' succotash."
  15. IIS will become legacy software by RoLi · · Score: 5, Interesting

    Nonsense. IIS will become a legacy product

    The share in Japan, Germany, Russia and many other countries already lies below 4% for many years. But also traditionally Microsoft-friendly countries can turn away from IIS, for example in the last 10 years, the share in France fell from 35% to 5%, in Brazil and Taiwan from over 45% to 15% and in India even from 65% to 18%.

    IIS will probably be able to hold out another 10 years, but in the long term it's future is far from rosy.

    1. Re:IIS will become legacy software by RoLi · · Score: 4, Interesting

      IIS loses everywhere, also in the "top 1 million" - category on Netcraft.

      I guess the one million websites with the most traffic are not "farting around", right?

    2. Re:IIS will become legacy software by Bert64 · · Score: 4, Informative

      Apache and nginx are both used for plenty of high traffic websites...

      Not so long ago MS were also paying large domain registrars to host their parked sites (ie empty sites, but lots of them) on IIS to artificially inflate the netcraft stats.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    3. Re:IIS will become legacy software by Ice+Tiger · · Score: 4, Informative

      IIS is used for industrial strength websites for corporations, online shopping sites, etc... People use IIS for _real work_, .

      That is correct, but a lot more corporations use non IIS solutions for industrial strength web sites.

      --
      "Because we are not employing at entry level, offshoring will kill our industry stone dead."
    4. Re:IIS will become legacy software by LordThyGod · · Score: 3, Informative

      Bollocks. Look at Netcraft's top 20. Only 2 run IIS, and those are MS owned domains. Everybody else is Linux + something else. The web is not so friendly to MS.

    5. Re:IIS will become legacy software by rvw · · Score: 2

      Apache and nginx are both used for plenty of high traffic websites...

      Not so long ago MS were also paying large domain registrars to host their parked sites (ie empty sites, but lots of them) on IIS to artificially inflate the netcraft stats.

      And apparently MS has stopped paying them, so now they use Apache or maybe even Nginx and the inflation has backfired.

    6. Re:IIS will become legacy software by jbolden · · Score: 2

      That article is looking at a type of webserving where the webserver using a substantial percentage of hardware. There are a huge number of applications in which the number of clients is vanishingly small but there is a strong desire to offer integration with other services, primarily intranets. In other words IIS is likely to thrive is where it always has, in the intranet where you want a non standard value add webserver solution.

      As a percentage of websites though, intranets are small.

    7. Re:IIS will become legacy software by fuzzyfuzzyfungus · · Score: 2

      Unless they fuck it up pretty horribly, IIS has an assured future as the embedded webserver for default installs of the various Microsoft products that have a web-facing component(ie. Foocorp installs exchange, exchange.foocorp.com/owa is going to be providing 'Outlook Web Access' via IIS... Ditto with Sharepoint and similar).

      If Microsoft has plans for people to actively shell out a nontrivial amount of money just to run a commodity HTTP server, though, they'd better have something good in mind, especially now that so much commodity HTTP serving is done on an outsourced basis by 'cloud' types or CDNs, both of which generally care a great deal about per-node costs that scale linearly with volume(like software licenses, or low end admin flunkies); but care substantially less about fixed costs(like having a serious guru on staff to deal with the esoteric intricacies of whatever they are using).

    8. Re:IIS will become legacy software by AmiMoJo · · Score: 2

      IIS is less focussed on high traffic web sites now. The main uses are for things linked to other MS services like Exchange and for serving vertical apps developed rapidly in ASP.NET. If you look at those markets it still does well because it is the only option.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    9. Re:IIS will become legacy software by thetoadwarrior · · Score: 2

      IIS is only really used by idiots bodging together a shitty company intranet and they can't operate anything without a gui.

  16. Public internet sites.. by RightSaidFred99 · · Score: 4, Informative

    Not all sites. IIS is used massively on the corporate interanet.

  17. Re:IIS still wins by f0rk · · Score: 2

    In what way is financial profit of the company/organization of any interest to the consumer?
    I hear a lot from non-OSS people that the financial profit of the company is in direct correlation to the support and maintenance motivation. In a fully proprietary environment, this might hold true to a larger extent. Less so in an OSS project, for several reasons.

    To argue that I'll use IIS over Nginx cuz IIS is racking in billions in profits to Microsoft feels like the complete opposite to what you REALLY should be comparing; feature set, security, development transparency, community, and so on.

    My choice is of software is, arguably biased, tilted towards the OSS way. I believe in the fundamental ideology in OSS where people is motivated by self interest, mastery, and contributions to the larger picture.

  18. SPDY by Lennie · · Score: 2

    Firefox will soon, probably Firefox 11, have support for SPDY (Speedy HTTP) like Chrome, but server support is limited currently.

    If nginx would support it, I'm sure it will replace or serve as a proxy in front of many, many more servers of performance oriented websites.

    --
    New things are always on the horizon
  19. Re:IIS still wins by jbolden · · Score: 2

    You meant that sarcastically, but it isn't entirely unreasonable to drop free webservers and look at profits as a different way of accounting. It does tell us something that for a long time with so many good free ones that: IIS, Oracle Weblogic (BEA), IBM's , LiteSpeed, riverbed ... are still sold. And the reason interestingly enough is generally the same. Integration.

    In both the case of iPhone over Android and commercial over free webservers it appears that customers consider integration / ease of integration to be a service worth paying substantial money for.

  20. Re:Money WASTED clearing up security breaches! by Anthony+Mouse · · Score: 2, Insightful

    I was wondering, how does Microsoft track your posts so that you can get paid when you post anonymously like that? Can't any of your fellow shills claim that post as their own and take your money? Or do they give you some kind of monitoring software so they can track who posts what or something like that?

  21. Re:Bigger "woosh" (reality on Linux vs. MS) by darkpixel2k · · Score: 2

    XEROX...Windows Server 2003
    The U.S.' LARGEST STOCK EXCHANGE...Windows Server 2003
    FUJIFILM GROUP...Windows Server 2003
    HILTON HOTELS...Windows Server 2003
    MEDITERRANEAN SHIPPING COMPANY...Windows Server 2003
    SWISS INTERNATIONAL AIRLINES...Windows Server 2003
    UNILEVER...Windows Server 2003
    MOTOROLA...Windows Server 2003 & SQLServer 2005
    NISSAN...Uses Windows Server 2003...and Exchange Server 2003
    TOYOTA MOTOR SALES...using Windows Server 2003
    DELL COMPUTER...Windows Server 2003
    HSBC...Windows Server 2003
    RAYOVAC Chose Windows Server 2003
    CONTINENTAL AIRLINES...Windows Server 2008
    7 ELEVEN STORES...Windows Server 2003
    STATE OF ILLINOIS GOVERNMENT...Windows Server 2003
    REGAL ENTERTAINMENT GROUP...Switching to Windows Server 2003 + Windows "Embedded"
    CARNIVAL CRUISE LINES...Manages 1,000 shipboard &Windows Server 2003 & Server (every boat needs an anchor, right?
    STARBUCKS...Windows Server 2003 Active Directory
    RADIOSHACK...Windows Server 2003
    TOMMY HILFIGER...Windows Server 2003
    NcSOFT...Windows Server 2003
    TDC...Windows Server 2003
    GAMEWORKS...using Windows Server 2003M
    SHOP DIRECT...intends to migrate no less than 350 servers from Windows Server 2003 to Windows Server 2008 R2

    It gives me such a warm feeling to see that 'SHOP DIRECT' has finally saved enough to upgrade 350 of their servers. Give them another decade on their remaining Windows 2003 boxes and they might be able to save enough to finish the project...

    And 'bravo' to the two other companies that could finally afford to upgrade to Windows 2008 by firing a bunch of IT staff to pay for licenses to upgrade to Windows 2008 (which is already 4 years out of date).

    For everyone else who is stuck on Windows 2003 because of costs or the fact that 15 year old corporate applications won't run under anything but IE6 and Windows XP--well, you're going to have to pay to re-write the apps anyways, you might as well consider re-writing them as a web-based app that can run from a much cheaper Linux-based server. If you still feel the need to get screwed by licensing fees, you can always purchase support from Red Hat, Canonical, etc... Or just send me a dump truck filled with cash...

    --
    There's no place like ::1 (I've completed my transition to IPv6)