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;
}
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 ?
?