【文件属性】:
文件名称:记录Nginx服务器的Split Clients模块配置过程
文件大小:53KB
文件格式:PDF
更新时间:2021-01-10 01:48:45
gi gin ie
ngx-http-split-clients模块基于一些特定条件分开客户端连接,(例如ip地址,请求头,cookies等)
示例配置:
http {
split-clients ${remote-addr}AAA $variant {
0.5% .one;
2.0% .two;
- ;
}
server {
location / {
index index${variant}.html;
可以使用$cookie-…作为来源来分离请求,来源字符串使用CRC32进行哈希计算并且哈希百分比将作为来源的值。
指令
split-