NGINX Unit 1.27.0 Ho lokolloa ha Seva ea Kopo

Seva ea kopo ea NGINX Unit 1.27.0 e hatisitsoe, moo tharollo e ntseng e ntlafatsoa ho netefatsa ho qalisoa ha lits'ebetso tsa webo ka lipuo tse fapaneng tsa lenaneo (Python, PHP, Perl, Ruby, Go, JavaScript/Node.js le Java ). Setsi sa NGINX se ka tsamaisa lits'ebetso tse ngata ka nako e le 'ngoe ka lipuo tse fapaneng tsa mananeo, litekanyo tsa ho qala tse ka fetoloang ka matla ntle le tlhoko ea ho hlophisa lifaele tsa tlhophiso le ho qala bocha. Khoutu e ngotsoe ka C mme e ajoa tlasa laesense ea Apache 2.0. U ka tloaelana le likarolo tsa Yuniti ea NGINX phatlalatsong ea tokollo ea pele.

Khatisong e ncha:

  • E kentse bokhoni ba ho sebelisa mefuta e fapaneng le boleng bo se nang letho ho taelo ea "sebaka", e tlamehang ho "khutlisa" liketso.
  • Tsela e nolofalitsoeng ea likopo tsa HTTP ho HTTPS. E kentse mofuta o mocha oa $request_uri o nang le URI ea kopo, e ka sebelisoang ha ho hlalosoa tsela e le parameter ho ea "location" taelo ka har'a "ketso" block: { "bamameli": { "*:443": { "tls) ": { "certificate" : "example.com" }, "fetisa": "tsela" }, "*:80": { "fetisa": "litsela" } }, "litsela": [ {"match": { "scheme": " http" }, "action": { "return": 301, "location": "https://${host}${request_uri}" } } }
  • Hoa khoneha ho hlophisa lebitso la faele ntle le index.html, le tla fanoa ha u fihlella ka directory feela (mohlala, site.com/cms/). "routes": [ {"match": { "uri": "/cms/*" }, "action": { "share": "/var/cms$uri", "index": "default.html" } }, { "ketso": { "share": "/var/www$uri" } } ]
  • Bakeng sa Ruby Rack, phapang ea tikoloho "SCRIPT_NAME" e se e behiloe.
  • Ho lumellana le GCC 12 ho fanoe.

Source: opennet.ru

Eketsa ka tlhaloso