Debian 6 重新编译增加substitutions_filter模块
来源:互联网 发布:php优劣是什么 编辑:程序博客网 时间:2024/06/05 20:39
aptitude install gcc g++ vim libncurses5-dev make libxml2-devapt-get -y install subversionapt-get install libpcre3 libpcre3-dev libcurl4-openssl-devwget -c http://nginx.org/download/nginx-1.0.5.tar.gz tar -zxf nginx-1.0.5.tar.gzwget -c http://wiki.nginx.org/images/5/51/Nginx-accesskey-2.0.3.tar.gztar -zxf Nginx-accesskey-2.0.3.tar.gzsvn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-onlycurdir=$(pwd)cd nginx-1.0.5 ./configure --user=nobody --group=nobody --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --conf-path=/etc/nginx/nginx.conf --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-pcre --with-http_sub_module --add-module=$curdir/substitutions4nginx-read-only --add-module=$curdir/nginx-accesskey-2.0.3 make make install
配置文件如下:
server{listen 80;server_name www.qalog.com; #绑定的域名root /var/www/html; #网站目录(搭配lnamp的时候有用处!)access_log off; #off 关闭日志location / {subs_filter 'www.hostloc.com' 'www.qalog.com' gi; #substitutions4nginx替换 (使用方法参照官方)subs_filter '全球主机交流论坛' '全球主机网' gi; #substitutions4nginx替换 (使用方法参照官方)proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header Referer http://www.hostloc.com; #强制定义Referer,程序验证判断会用到proxy_set_header Host www.hostloc.com; #定义主机头,如果目标站点绑定的域名个server_name项的吻合则使用$hostproxy_pass http://174.127.189.179; #指定目标,建议使用IP或者nginx自定义池proxy_set_header Accept-Encoding ""; #清除编码}}
- Debian 6 重新编译增加substitutions_filter模块
- 不重新编译为PHP增加LDAP模块的支持
- 不重新编译为 PHP 增加 LDAP 模块
- Nginx重新编译添加模块
- Nginx重新编译添加模块
- Nginx重新编译添加模块
- Nginx重新编译添加模块
- Nginx重新编译添加模块
- nginx编译增加其他模块
- XCP之重新编译内核--增加IMA
- linux 不重新编译PHP 增加扩展
- php 不重新编译增加openssl扩展
- Debian下编译安装驱动模块
- Debian Linux的 kernel(内核)的重新编译
- 重新编译一下php的zip模块
- php不重新编译安装扩展模块
- php安装与重新编译模块
- 不重新编译apache安装mod_deflate模块
- JavaME UI设计之点阵字体
- 手机号码判断函数
- JavaME UI设计之Bitmap字体
- JavaME UI设计之图像特效一
- JavaME UI设计之图像特效二
- Debian 6 重新编译增加substitutions_filter模块
- 幸福在我心
- JavaME UI设计之九宫格
- 委托
- hdu 1248 寒冰王座
- JavaME UI设计之滚动条
- Installshield2010 修改生成的setup.exe的图标
- JavaME UI设计之低级界面文本控件
- Memory Layout for Multiple and Virtual Inheritance