<div dir="ltr">Привет,<div><br></div><div>В вики (которая я знаю, что не явлется офф документацией) нашёл, что с помощью <span style="color:rgb(0,0,0)">split_clients и set можно добавлять get параметр какому-то % клиентов . </span></div>
<div><span style="color:rgb(0,0,0)">Но у меня такая конструкция не работает: не изменяет $args вообще никак.</span></div><div><br></div><div><pre class="" style="margin:0px 4em 2em 2em;border:3px solid rgb(255,255,255);padding:0.5em;background-color:rgb(249,249,249);vertical-align:top;width:860.078125px">
<span style="font-size:12px;line-height:1.2em;color:rgb(85,85,85)"><a href="http://wiki.nginx.org/NginxHttpCoreModule#http" style="margin:0px;color:rgb(220,3,3);text-decoration:none"><span class="" style="margin:0px;color:rgb(0,0,102)">http</span></a> <span class="" style="margin:0px;color:rgb(102,204,102)">{</span>
    split_clients <span class="" style="margin:0px;color:rgb(255,0,0)">"${remote_addr}"</span> <span class="" style="margin:0px">$additionalQsVariable</span> <span class="" style="margin:0px;color:rgb(102,204,102)">{</span>
            <span class="" style="margin:0px">51</span>% <span class="" style="margin:0px;color:rgb(255,0,0)">"coolVariable=1"</span><span class="" style="margin:0px;color:rgb(102,204,102)">;</span>
            <span class="" style="margin:0px">49</span>% <span class="" style="margin:0px;color:rgb(255,0,0)">""</span><span class="" style="margin:0px;color:rgb(102,204,102)">;</span>
        <span class="" style="margin:0px;color:rgb(102,204,102)">}</span>
 
    <a href="http://wiki.nginx.org/NginxHttpCoreModule#server" style="margin:0px;color:rgb(220,3,3);text-decoration:none"><span class="" style="margin:0px;color:rgb(0,0,102)">server</span></a> <span class="" style="margin:0px;color:rgb(102,204,102)">{</span>
        <a href="http://wiki.nginx.org/NginxHttpCoreModule#location" style="margin:0px;color:rgb(220,3,3);text-decoration:none"><span class="" style="margin:0px;color:rgb(0,0,102)">location</span></a> <span class="" style="margin:0px;color:rgb(102,204,102)">~</span> \.php$ <span class="" style="margin:0px;color:rgb(102,204,102)">{</span>
            <a href="http://wiki.nginx.org/NginxHttpRewriteModule#set" style="margin:0px;color:rgb(220,3,3);text-decoration:none">set</a> <span class="" style="margin:0px">$args</span> <span class="" style="margin:0px;color:rgb(255,0,0)">"${query_string}&${additionalQsVariable}"</span><span class="" style="margin:0px;color:rgb(102,204,102)">;</span>
            </span><font color="#66cc66"><span style="line-height:14.390625px">proxy_pass <a href="http://127.0.0.1:8080">http://127.0.0.1:8080</a>;</span></font><font color="#555555" style="font-size:12px;line-height:1.2em">
        </font><span class="" style="font-size:12px;line-height:1.2em;color:rgb(102,204,102);margin:0px">}</span><font color="#555555" style="font-size:12px;line-height:1.2em">
    </font><span class="" style="font-size:12px;line-height:1.2em;color:rgb(102,204,102);margin:0px">}</span></pre></div><div><div style="color:rgb(0,0,0)"><font face="courier new, monospace" size="1">nginx version: nginx/1.1.19</font></div>
<div style="color:rgb(0,0,0)"><font face="courier new, monospace" size="1">TLS SNI support enabled</font></div><div style="color:rgb(0,0,0)"><font face="courier new, monospace" size="1">configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module</font></div>
</div><div><br clear="all"><div style>Что я делаю не так? И как нужно делать?</div><div style><br></div><div style>Спасибо.</div><div><br></div>-- <br><div dir="ltr">Viacheslav Biriukov<br>BR<br><div><a href="http://biriukov.me" target="_blank">http://biriukov.me</a></div>
</div>
</div></div>