Nginx AB测试功能

L78

 

 

Syntax: split_clients string $variable { ... }
Default:
Context: http
http {
    split_clients "${remote_addr}AAA" $variant {
                   0.5%               .one;
                   2.0%               .two;
                   *                  "";
    }

    server {
        location / {
            index index${variant}.html;
        }    
    }
原文地址:https://www.cnblogs.com/jackey2015/p/10406138.html