News for hackers. Stuff that matters.
Re:Nginx design details by lnanek2 on Saturday July 07, 2012 @10:51AM (#4211746)
My one experience with this server was quite bad. The web group we contracted used it, but would constantly run into issues us developers could have helped them with had they used Apache. Things like needing to return certain headers in the request, or return certain status codes, or do certain things handled easily by Apache's large ecosystem of modules became very grueling trials full of meetings with the contractors running the thing.

Just like Java is sometimes the best language to use because it has huge mind share despite the warts, sometimes Apache is the right server to use just because that's what almost everyone uses and it makes things so much easier than using something more rare.

Re:Nginx design details by harshreality on Saturday July 07, 2012 @11:17AM (#4211825)
You would run into the same situation with contractors who used apache, if they didn't know apache very well.

Returning status codes from nginx is easy. Adding headers is easy. Perhaps you could elaborate about "certain things handled easily by Apache's large ecosystem of modules".

Apache's large ecosystem of modules is built around doing everything in the webserver. More often these days, that stuff is handled by a dynamic application. Nginx talks to those via fastcgi, scgi, uwsgi, or plain http proxying. Nginx does not need to know anything about how the apps do whatever it is they do.

Re:Nginx design details by asto on Saturday July 07, 2012 @11:04AM (#4211786)
Can you give concrete examples of what you couldn't do?

Here's the wiki on how to set headers: http://wiki.nginx.org/HttpHeadersModule

Here's the wiki on returning a particular http code: http://wiki.nginx.org/HttpRewriteModule#return

Re:Nginx design details by herewego on Saturday July 07, 2012 @11:19AM (#4211831)
I'm curious what you issues you ran into as well. I've used it in production environments for the past few years after moving away form Apache. It was a near seamless transition for my team, myself included. We use it behind some heavy iron load balancers and in front of a dozen web servers and it's been a generally pleasant experience.
Re:Nginx design details by genwin on Saturday July 07, 2012 @12:55PM (#4212087)
Why do you use a web server (Nginx) in front of other web servers? I'm pretty new to this. Thanks.
Re:Nginx design details by ceejayoz on Saturday July 07, 2012 @01:19PM (#4212157)
I've seen situations where nginx sits in front of Apache and serves static files directly, but proxies requests for PHP through to Apache for easier setup.
Re:Nginx design details by ObnoxiousJul on Saturday July 07, 2012 @02:15PM (#4212294)
As described, static or lighttpd for static and reverse proxy for the domain achieves more than one goal:

* you can serve page faster; * you can mix on a same domain more than one app from different servers in the DMZ (for sharing domain based mechanism (flash, Cross site ajax) by rewriting the url; * you can have one front (nginx) and several servers, which with heartbeat mechanism can handle failover. * you could (when ssl certificate were only IP based) share one SSL certificate for more than one back (VIP)

It is a pretty low cost quite scalable architecture. I guess you could do it with apache, but I dropped apache since its licence is as understandable as its configurations.

Re:Nginx design details by nl on Sunday July 08, 2012 @06:36AM (#4214273)
would constantly run into issues us developers could have helped them with had they used Apache

I'm not sure that says what you think it does about Ngnix and the developers you deal with...