您的位置:首页 > 运维架构 > Apache

paip.输出内容替换在Apache 过滤器filter的设置

2013-12-28 18:56 393 查看
paip.输出内容替换在Apache 过滤器filter的设置

作者Attilax 艾龙, EMAIL:1466519819@qq.com

来源:attilax的专栏

地址:http://blog.csdn.net/attilax

LoadModule ext_filter_module modules/mod_ext_filter.so

## mod_ext_filter directive to define a filter which

## replaces text in the response

##

# ExtFilterDefine fixtext1 mode=output intype=text/html cmd="d:/sed.exe 's,lonely-s,attilax,'"

ExtFilterDefine fixtext mode=output intype=text/html cmd="e:/sed.exe s/lonely/attilax/g"

ExtFilterDefine fixtext1 mode=output intype=text/html cmd="e:/sed.exe s/server/attilax/g"

<Location />

# core directive to cause the fixtext filter to

# be run on output

SetOutputFilter fixtext;fixtext1

ExtFilterOptions LogStderr DebugLevel=6

</Location>

参考

在Apache和Nginx反向代理中实现输出内容替换例子_域名主机_站长资讯_最模板.htm

mod_ext_filter - Apache 2.2 中文版参考手册.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐