Browse Source

修改拦截响应为403

pull/47/head
loveshell 10 years ago
parent
commit
5440ec88fa
  1. 3
      init.lua

3
init.lua

@ -71,8 +71,9 @@ ckrules=read_rule('cookie')
function say_html()
if Redirect then
ngx.header.content_type = "text/html"
ngx.status = ngx.HTTP_FORBIDDEN
ngx.say(html)
ngx.exit(200)
ngx.exit(ngx.status)
end
end

Loading…
Cancel
Save