Release of the NGINX Unit application server 1.27.0

The application server NGINX Unit 1.27.0 has been released, which develops a solution for running web applications in various programming languages (Python, PHP, Perl, Ruby, Go, JavaScript/Node.js, and Java). NGINX Unit can run multiple applications in different programming languages simultaneously, with the option to dynamically change launch parameters without the need to modify configuration files or restart. The code is written in C and is distributed under the Apache 2.0 license. You can learn more about the features of NGINX Unit in the announcement of the first release.

In the new version:

  • Added the ability to use variables and empty values in the ‘location’ directive, tied to ‘return’ actions.
  • HTTP request redirection to HTTPS has been simplified. A new variable $request_uri has been added, which contains the request URI and can be used to define a route as a parameter of the ‘location’ directive within the ‘action’ block: { “listeners”: { “*:443”: { “tls”: { “certificate”: “example.com” }, “pass”: “routes” }, “*:80”: { “pass”: “routes” } }, “routes”: [ { “match”: { “scheme”: “http” }, “action”: { “return”: 301, “location”: “https://${host}${request_uri}” } } }
  • It is now possible to configure a file name different from index.html, which will be returned when accessing a directory (e.g., site.com/cms/). “routes”: [ { “match”: { “uri”: “/cms/*” }, “action”: { “share”: “/var/cms$uri”, “index”: “default.html” } }, { “action”: { “share”: “/var/www$uri” } } ]
  • For Ruby Rack, the environment variable ‘SCRIPT_NAME’ can now be set.
  • Compatibility with GCC 12 has been ensured.

Source: opennet.ru

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