修改nginx返回给浏览器的内容,如“hello world”改成“hello nginx”

188 views
Skip to first unread message

xiwu zhao

unread,
May 30, 2016, 3:17:37 AM5/30/16
to openresty
请问,有没有类似ngx.req.set/get_body_data 接口可以,“篡改” response的body数据。

网络结构如下:
浏览器<---->nginx反向代理<---> server

在反向代理这一层实现上述需求

--thx

xiwu zhao

unread,
May 30, 2016, 3:22:38 AM5/30/16
to openresty
http_sub_module 类似这个模块的功能。有木有lua接口

在 2016年5月30日星期一 UTC+8下午3:17:37,xiwu zhao写道:

XI WANG

unread,
May 30, 2016, 5:00:20 AM5/30/16
to openresty

xiwu zhao

unread,
May 30, 2016, 6:11:39 AM5/30/16
to openresty
感谢~

在 2016年5月30日星期一 UTC+8下午5:00:20,XI WANG写道:
Reply all
Reply to author
Forward
0 new messages