News for hackers. Stuff that matters.
Re:Nginx Unit by jimjag on Thursday September 07, 2017 @10:31AM (#15192164)
I am biased, but call me underwhelmed. It seems that with every "new" feature, nginx is copying Apache httpd, even now claiming to be the "swiss army knife" of web-servers. Embedded languages. Dynamic modules. Support of uWSGI. gracefull restarts. Thread pools... and yet people eat it up. Just goes to show what having corporate-backed marketing and PR can do.
Re:Nginx Unit by Prefinem on Thursday September 07, 2017 @10:57AM (#15192420)
When I started with apache, I thought it was great, but after moving to nginx, the speed and simplicity made me never look back. While these new features to nginx aren't new to the world, they are a nice welcome addition to a system that IMO is far superior to apache.
Re:Nginx Unit by overcast on Thursday September 07, 2017 @11:12AM (#15192560)
I never found Nginx especially simple to setup, the config files were always messy. Caddy seems to have knocked this out of the park for me, especially considering automated https, and redirection.
Re:Nginx Unit by Prefinem on Thursday September 07, 2017 @11:31AM (#15192761)
I use Caddy on all my small projects right now. I haven't used it long enough to install enough faith for production sized systems yet, but hopefully I will get there because it is much easier to setup. Still, nginx is a breeze compared to apache IMO
Re:Nginx Unit by overcast on Thursday September 07, 2017 @11:39AM (#15192844)
Been pretty rock solid for everything I've put on it! Side projects + corporate.
Re:Nginx Unit by Prefinem on Thursday September 07, 2017 @11:51AM (#15192951)
I will keep that in mind. You mind me asking what's your most complex setup and your scale?
Re:Nginx Unit by eddieroger on Thursday September 07, 2017 @12:12PM (#15193151)
I share your love for Caddy, but having worked with all three, I do agree that nginx is easier than Apache. The config file isn't perfect, but I wouldn't call it messy, and I prefer it's syntax httpd's. But to each their own.
Re:Nginx Unit by VT_Drew on Thursday September 07, 2017 @04:12PM (#15195268)
>the config files were always messy.

How? It so much cleaner and simpler than Apache. I don't get this sentiment.

Re:Nginx Unit by adrianratnapala on Thursday September 07, 2017 @05:53PM (#15196101)
Simpler than apache doesn't mean simple. As someone who sets up HTTP servers rarely, I had trouble when I tried out NGINIX.

But I suspect for people who do it more seriously, then it's nginix config hits the sweet spot. To me the language seems sophisticated, well documented and fairly well behaved if you pay attention to the rules.

That's can make it too hard for someone casually trying to quick-start some experimental project. But it's exactly what you want if you are maintaining a long-lived set up that is likely to grow and become complicated over time.

Re:Nginx Unit by tapoxi on Thursday September 07, 2017 @11:24AM (#15192702)
Is this nginx though, or an app server with nginx's branding?
Re:Nginx Unit by Prefinem on Thursday September 07, 2017 @11:32AM (#15192773)
I believe it's an app server built by the nginx people. Still gives me faith that they built it right.
Re:Nginx Unit by korzun on Thursday September 07, 2017 @10:57AM (#15192417)
I don't understand why people want to write something off without even trying it.

This is not'nginx'. You can't sit and write this off because Apache did something similar ten years ago. The build in API alone is worth exploring.

Re:Nginx Unit by zzzcpan on Thursday September 07, 2017 @11:15AM (#15192592)
Because people have a hard time figuring out what it is. Could you explain what it is? What benefits does it have to make it worth exploring? To me it looks like a rather invasive but flexible and dynamically configurable inetd. But it forces you to use its own libraries to receive http requests.
Re:Nginx Unit by derefr on Thursday September 07, 2017 @03:23PM (#15194929)
It's a lot like OpenResty (https://openresty.org/en/), which is Nginx with a Lua interpreter embedded and bridged to its request-response cycle (the OpenResty page explains the point of that pretty well); but instead of Lua, Unit has a bunch of other language runtimes embedded.
Re:Nginx Unit by zzzcpan on Thursday September 07, 2017 @03:52PM (#15195131)
I haven't found any embedded interpreters or runtimes here. Quite the opposite, I see they have libraries they ship with other languages that a user has to use in order to receive http requests.
Re:Nginx Unit by etiene on Friday September 08, 2017 @04:15AM (#15198666)
Why remove Lua, though? I'm a heavy Lua user, which is why I use the openresty bundle of nginx. There's no reason for me to try this out. This is unfortunate!
Re:Nginx Unit by anonacct37 on Thursday September 07, 2017 @11:37AM (#15192818)
I agree. Apache has great module support. I think their worst sin was that their debian package defaulted to a small number of workers and using a forking mpm leading people to believe apache was slow.

Their eventing/threaded mpm is basically nginx.

And now nignx is starting to gain the features of apache.

Re:Nginx Unit by b34r on Thursday September 07, 2017 @12:22PM (#15193253)
Performance is a feature.