openresty修改302的location
发布时间:2020-12-14 21:54:49 所属栏目:大数据 来源:网络整理
导读:header_filter_by_lua location /demo { proxy_pass http://localhost:3000/demo ; header_filter_by_lua ' local url = ngx.header.Location if not url then return else ngx.header.Location = "http://localhost:3001/newDemo" end '; }
header_filter_by_lualocation /demo { proxy_pass http://localhost:3000/demo ; header_filter_by_lua ' local url = ngx.header.Location if not url then return else ngx.header.Location = "http://localhost:3001/newDemo" end '; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |