1.安装此模块需要先安装sregex运行库

apt-get update;
apt-get install git make gcc -y
#Centos改成yum
git clone https://github.com/agentzh/sregex
cd sregex
make
make install
cd ..
git clone https://github.com/agentzh/replace-filter-nginx-module
wget http://nginx.org/download/nginx-1.2.6.tar.gz
tar zxvf nginx-1.2.6.tar.gz
cd nginx-1.2.6
./configure --add-module=../replace-filter-nginx-module #自行加其他编译参数
make
make install
nginx.conf的用法举例: location /t {
default_type text/html;
echo abc;
replace_filter 'ab|abc' X;
} location / {
# proxy_pass/fastcgi_pass/... # caseless global substitution:
replace_filter '\d+' 'blah blah' 'ig';
replace_filter_types text/plain text/css;
}

最新文章

  1. debian8安装Odoo中的Barcode Scanner Hardware Driver模块时,提示没有evdev
  2. 制作本地 odoo deb包安装镜像
  3. 前端异步解决方案——mmDeferred
  4. 第九篇、Swift的基本使用
  5. apache 修改端口号 修改根目录 建立多个网站
  6. mysql获取各种日期
  7. MVC test
  8. Javascript下IE与Firefox下的差异兼容写法总结
  9. jQuery 3.0最终版发布,十大新特性眼前一亮
  10. 微表面分布函数(Microfacet Distribution Function)确切含义
  11. mui 下拉刷新和上拉加载
  12. js里的回调函数
  13. angularjs入门(二)
  14. mysql-学习笔记1
  15. 【Android自动化】编写一个log模块,输出至控制台,供程序运行查看
  16. 低版本的linux系统装samba服务器
  17. Ubuntu16.04(Linux)安装JDK
  18. PSP DAILY软件功能说明书
  19. SAPUI5实例一:来创建Web应用UI
  20. mongodb的学习之旅一

热门文章

  1. 004---Linux系统设置
  2. ubuntu配置机器学习环境(四) 安装intel MKL
  3. Code First Migrations更新数据库结构(数据迁移) 【转】
  4. 1、Java多线程基础:进程和线程之由来
  5. centos7下安装oracle11gR2的详细步骤
  6. .NET中调用不安全代码
  7. 2018春季校园招聘笔经面经合集:Java开发岗
  8. Python 基本文件操作
  9. Windows Server 2008 R2(x64) IIS7+PHP5(FastCGI)环境搭建
  10. [HNOI2012]三角形覆盖问题