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

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
posted @ 2013-12-28 18:56  attilaxAti  阅读(284)  评论(0编辑  收藏  举报