- Notifications
You must be signed in to change notification settings - Fork 420
3 rewrite_Mod
star edited this page Jan 7, 2018 · 3 revisions
rewrite_Mod 跳转规则模块
(对应配置文件:conf_json/rewrite_Mod.json)
该模块是访问控制的 第三步 ,用于配置rewrite跳转使用的
[ { "state": "on", # 该条规则开关 "action": "set_cookie", # 该规则执行的动作 "set_cookie":["asjldisdafpopliu8909jk34jk","tokenYouname"], # 配置set_cookie动作的参数,第一个是用hash时增加的随机字符串,需要自己写;第二个是`set cookie`到具体名称的配置 "hostname": ["101.200.122.200",""], # 匹配 `host` 的条件是 字符串等于 ;该条规则就是只匹配 `host` 等于 `101.200.122.200` "uri": ["^/rewrite$","jio"] # 匹配 `uri` 的条件是 正则匹配 ; }, ... #下一条规则 ]