Re:Nginx is now the most popular web server, overtaking Apache
by franga2000 on Wednesday May 05, 2021 @05:09PM
(#27055874)
What about the rest of that sentence? The way I read it (admittedly, the English is broken, so it isn't entirely clear what they meant) was that nginx is only good at "serving" static content, while the rest of what it does is proxying, not "serving". In that case, where a distinction is intentionally made between "serving" and "proxying", taking request for dynamic content and just shooting them off to an application server like uwsgi wouldn't be considered "serving".
Taking this logic to the extreme, socat is also very good at serving dynamic content:
$ socat TCP-LISTEN:80,fork,reuseaddr TCP:127.0.0.1:8080 # Make sure Gunicorn is running on port 8080 to handle incoming requests
> Considering nginx is really just good at serving static content...
That's not correct at all. Regardless of how the request handled, serving dynamic content on nginx is trivial.