rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
584 stars 56 forks source link

Hanlde nginx upsream list #90

Open mhf-ir opened 4 years ago

mhf-ir commented 4 years ago

How to write simple php script using ngx_php to add/remove the upstream list of nginx, As interval php scripts run and check health of upstream and remove it if theire down or not healthy ?

upstream backend {
    server backend1.example.com       weight=5;
    server backend2.example.com       weight=3;
    server backend3.example.com:8080;
}

?

rryqszq4 commented 4 years ago

@mhf-ir Unfortunately, it is not supported yet.