News for hackers. Stuff that matters.
Re:Nginx reaches 33.3% web server market share while Apache ... by jamroom on Monday April 10, 2017 @12:26PM (#14079891)
Re:Nginx reaches 33.3% web server market share while Apache ... by Sir_Cmpwn on Monday April 10, 2017 @12:29PM (#14079920)
I know you can reverse proxy, but I haven't heard of anyone reverse proxying to apache.
Re:Nginx reaches 33.3% web server market share while Apache ... by vidarh on Monday April 10, 2017 @01:47PM (#14080854)
There's a massive amount of Apache modules and installs of stuff that has various dependencies on Apache where it's simply not worthwhile to expend any effort to convert it to Nginx, but where it's worthwhile placing in Nginx in front if you prefer Nginx for things like caching, load balancing etc.
Re:Nginx reaches 33.3% web server market share while Apache ... by fgonzag on Monday April 10, 2017 @12:38PM (#14080011)
That was the original way (at least the most common way) to do CGI. Nginx as a reverse proxy / load balancer / SSL terminator / static file server pointing to a backend running apache for mod_cgi or mod_fastcgi. And a lot of people would have both web servers running on the same server. You already have a web server, why do you need two?! Just pick one!
Re:Nginx reaches 33.3% web server market share while Apache ... by vidarh on Monday April 10, 2017 @01:44PM (#14080834)
I feel old now. It was nowhere near the original way - CGI predates Nginx by a decade.

> why do you need two?! Just pick one!

When they're good at different things.

Re:Nginx reaches 33.3% web server market share while Apache ... by ue_ on Monday April 10, 2017 @12:57PM (#14080250)
Reverse proxying to Apache is still how I run my Perl CGI scripts. I'm not sure of a better way to do it that supports running multiple scripts.
Re:Nginx reaches 33.3% web server market share while Apache ... by pwenzel on Monday April 10, 2017 @12:43PM (#14080056)
Webfaction has been doing it that way since roughly 2008, initially introduced as a way to speed up serving of static files.

https://blog.webfaction.com/2008/12/a-little-holiday-present...

Re:Nginx reaches 33.3% web server market share while Apache ... by nkozyra on Monday April 10, 2017 @12:31PM (#14079945)
It's extraordinarily common but largely unnecessary.
Re:Nginx reaches 33.3% web server market share while Apache ... by lucideer on Monday April 10, 2017 @01:43PM (#14080820)
I'd say the most common use-case (particularly given the ubiquity of PHP on the web) is to support mod_php for people not wanting to move to php-fpm for whatever reason - often some weird legacy reason, or sometimes just familiarity and change overhead.
Re:Nginx reaches 33.3% web server market share while Apache ... by justbaker on Monday April 10, 2017 @12:32PM (#14079954)
I've done it and yeah don't do it.