加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sb.conf 823 Bytes
一键复制 编辑 原始数据 按行查看 历史
calvin 提交于 2015-05-05 14:19 . aa
# 1. comment line with # start
# 2. ip address may have wildcard characters, '*': 0-255, '[x-y]': x and y should number from 0-255
# 3. port allow '*', but not allow '[x-y]'
# 4. specially, listen address, ip can be '*.*.*.*' which listen all system's ip, but port not alow any whilcard characters
# 5. timeout scale: ms, s(lowercase character) and not allow 0.5s, just write 500ms
# 6. rule name follow by rule tag and split by '-', max len 50 characters
# 7. rule name max len 50 characters
#sougou: { 210.51.12.173:80, 210.51.12.173:80 }
#tencent:{ 115.236.148.160:80 }
accept_delay:1000ms
rule-baidu
{
logfile: ./baidu.log
connect_timeout: 120ms
keepalive_timeout: 500ms
listen: 127.0.0.1:8882
client: 127.0.0.[1-23]:*
balance: rr
server
{
115.239.211.112:80(weight=1;max_fails=2;fail_timeout=30s)
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化