修改拦截响应为403

pull/47/head
loveshell 10 years ago
parent aba8bdbc8c
commit 5440ec88fa

@ -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…
Cancel
Save