官网地址。
主要看配置文件ngx_http_sub_module模块是一个过滤器,它通过替换一个指定的字符串来修改响应。
这个模块不是默认构建的,它应该使用-with-http_sub_module配置参数启用
指令
sub_filter
sub_filter_last_modified
sub_filter_once
sub_filter_types
演示结果:
这个模块比较简单,主要应用场景可以对某些敏感词进行过滤。
官网地址。
主要看配置文件ngx_http_sub_module模块是一个过滤器,它通过替换一个指定的字符串来修改响应。
这个模块不是默认构建的,它应该使用-with-http_sub_module配置参数启用
指令
sub_filter
sub_filter_last_modified
sub_filter_once
sub_filter_types
演示结果: