修改拦截响应为403
parent
aba8bdbc8c
commit
5440ec88fa
3
init.lua
3
init.lua
|
@ -71,8 +71,9 @@ ckrules=read_rule('cookie')
|
||||||
function say_html()
|
function say_html()
|
||||||
if Redirect then
|
if Redirect then
|
||||||
ngx.header.content_type = "text/html"
|
ngx.header.content_type = "text/html"
|
||||||
|
ngx.status = ngx.HTTP_FORBIDDEN
|
||||||
ngx.say(html)
|
ngx.say(html)
|
||||||
ngx.exit(200)
|
ngx.exit(ngx.status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue