在conf文件nginx

时间:2019-04-19 08:40:16

标签: nginx nginx-config

目前用于测试的配置如下:

split_clients $remote_addr $upstream {
    5% appversion2;
    *  appversion1;
}

upstream appversion1 {
   # ...
}

upstream appversion2 {
   # ...
}

server {
    listen 80;
    location / {
        proxy_pass http://$upstream;
    }
}

是否可以在split_clients中执行脚本,以便在其中执行卷曲?

0 个答案:

没有答案