Release of NGINX Unit Application Server 1.9.0

Took place release of the application server NGINX Unit 1.9, as part of which a solution is developed to enable the launch of web applications in various programming languages (Python, PHP, Perl, Ruby, Go, JavaScript/Node.js, and Java). Under NGINX Unit, multiple applications in different programming languages can run simultaneously, with launch parameters that can be dynamically changed without the need to edit configuration files or restart. The code is written in C and is distributed is licensed under Apache 2.0. You can explore the features of NGINX Unit at announcement the first release.

In the new version:

  • Possibility of request routing based on URI arguments, headers, and Cookies;

    "headers": [
    {
    "Accept-Encoding": "*gzip*",
    "User-Agent": "Mozilla/5.0*"
    },
    {
    "User-Agent": "curl*"
    }
    ]

  • The route matching templates support masks in the middle of the expression. For example,

    "host": ["eu-*.example.com", "!eu-5.example.com"]

  • Support operations sent using the POST method to manipulate the contents of arrays in the configuration (changes are sent in JSON format);

    curl -X POST -d '{"match": {"uri": "\/production\/*"}, \
    "action": {"pass": "applications\/wiki-prod"}}' \
    --unix-socket=\/path\/to\/control.unit.sock \
    http://localhost/config/routes/

  • Support for changing user and group using capabilities CAP_SETUID and CAP_SETGID in Linux without running the main process under a privileged user.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster