NGINX Unit 1.9.0 Application Server Release

Took place application server release NGINX Unit 1.9, which develops a solution to ensure the launch of web applications in various programming languages ​​(Python, PHP, Perl, Ruby, Go, JavaScript / Node.js and Java). Under the control of NGINX Unit, several applications in different programming languages ​​can run simultaneously, the launch parameters of which can be changed dynamically without the need to edit configuration files and restart. The code is written in C language and spreads licensed under Apache 2.0. You can get acquainted with the features of NGINX Unit in announcement first release.

In the new version:

  • Possibility routing requests by URI arguments, headers and Cookies;

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

  • Route matching patterns support wildcards in the middle of an 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 transmitted 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 CAP_SETUID and CAP_SETGID capabilities on Linux without running the main process as a root user.

Source: opennet.ru

Add a comment