Nginx Getting JavaScript Scripting Engine

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, April 14, 2015

Follow me on Twitter as @mattiasgeniar

I missed the original hint in October 2014, so this came as a surprise to me.

Also, eventually, JavaScript can be used as [an] application language for Nginx. Currently we have only Perl and Lua [supported in Nginx]. Perl is our own model, and Lua is a third-party model.

infoworld.com

and

We’re planning JavaScript configurations, using JavaScript in [an] Nginx configuration. We plan to be more efficient on these [configurations], and we plan to develop a flexible application platform. You can use JavaScript snippets inside configurations to allow more flexible handling of requests, to filter responses, to modify responses. Also,

infoworld.com

It seems Nginx is evolving into a bigger & bigger beast. I’m not yet sure what to think of JavaScript as a scripting language next to LUA in Nginx. At first sight, it looks like overkill. Like it’s turning Nginx from the lean mean HTTP serving machine into a more bloated application server.

At the same time, it always struck me as odd that Nginx had a POP3 and IMAP proxy.

Maybe I’m just missing the vast amount of users that use Nginx as a TCP load balancers instead of just an HTTP webserver?



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.