NGINX Unit 1.9.0 Ho lokolloa ha Seva ea Kopo

etsahetse tlhahiso ea seva ea kopo Yuniti ea NGINX 1.9, 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 le ajoa ke e nang le tumello tlas'a Apache 2.0. U ka tloaelana le likarolo tsa NGINX Unit ho phatlalatso khatiso ea pele.

Khatisong e ncha:

  • Monyetla likopo tsa ho tsamaisa tse ipapisitseng le likhang tsa URI, lihlooho le Li-cookies;

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

  • Litempele tse tsamaellanang le litsela li se li tšehetsa limaske tsa polelo e bohareng. Ka mohlala,

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

  • tshehetso mesebetsi e rometsoeng ho sebelisoa mokhoa oa POST ho laola likahare tsa li-arrays ho tlhophiso (liphetoho li fetisoa ka mokhoa oa JSON);

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

  • Ts'ehetso ea ho fetola mosebelisi le sehlopha ho sebelisa bokhoni ba CAP_SETUID le CAP_SETGID ho Linux ntle le ho tsamaisa ts'ebetso ea mantlha joalo ka mosebelisi ea nang le lehlohonolo.

Source: opennet.ru

Eketsa ka tlhaloso