首页 > 其他分享 >OpenResty 使用sub_filter注入代码

OpenResty 使用sub_filter注入代码

时间:2022-10-08 16:25:59浏览次数:45  
标签:sub 配置文件 代码 filter OpenResty 注入

1、编译openresty时需要增加模块 --with-http_sub_module

2、修改nginx配置文件,测试将</head> 替换为 '<script src="http://libs.baidu.com/jquery/2.0.2/jquery.min.js"></script></head>' 

效果如下

 

标签:sub,配置文件,代码,filter,OpenResty,注入
From: https://www.cnblogs.com/kgdxpr/p/16769280.html

相关文章