全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: ghugo
打印 上一主题 下一主题

[疑问] 求教反向代理问题

[复制链接]
11#
发表于 2011-9-26 01:21:11 | 只看该作者
需要编译nginx的substitutions模块,贴下我刚装的流程。
http://code.google.com/p/substitutions4nginx/
-----------------------------------

cd /root

yum install -y subversion

svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only

wget ftp://ftp.csx.cam.ac.uk/pub/soft ... re/pcre-8.13.tar.gz

tar zxvf pcre-8.13.tar.gz && cd pcre-8.13/ && ./configure

make && make install && cd ../

wget http://www.nginx.org/download/nginx-1.0.6.tar.gz

./configure --prefix=/usr/local/nginx \
--sbin-path=/usr/local/nginx/sbin/nginx \
--conf-path=/usr/local/nginx/conf/nginx.conf \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-pcre=/root/pcre-8.13\
--lock-path=/var/run/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-http_sub_module --add-module=/root/substitutions4nginx-read-only

make && make install && cd ../
12#
发表于 2011-9-26 01:21:45 | 只看该作者
13#
发表于 2011-9-26 01:22:27 | 只看该作者
教训就是相对链接是王道
14#
发表于 2011-9-26 01:22:29 | 只看该作者
此贴我收藏下 因为我不会
15#
 楼主| 发表于 2011-9-26 01:28:30 | 只看该作者
我尝试下吧。。头有点晕晕的
16#
发表于 2011-9-26 01:33:16 | 只看该作者

回复 15# ghugo 的帖子

你直接用lnmp.org 的安装包吧,稍微修改下centos.sh文件就可以了。自己一个个编译麻烦的很。
大概其中一段修改成这样就好了:

cd /root
yum install -y subversion
svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only

cd $cur_dir
tar zxvf nginx-0.8.54.tar.gz
cd nginx-0.8.54/
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --add-module=/root/substitutions4nginx-read-only
make && make install
cd ../

[ 本帖最后由 znithy 于 2011-9-26 02:08 编辑 ]
17#
发表于 2011-9-26 01:43:12 | 只看该作者
高手真多
18#
 楼主| 发表于 2011-9-26 02:11:31 | 只看该作者
好的 谢谢了
19#
发表于 2011-9-26 02:18:10 | 只看该作者
  1. aptitude install gcc g++ vim libncurses5-dev make libxml2-dev
  2. apt-get -y install subversion
  3. apt-get install libpcre3 libpcre3-dev libcurl4-openssl-dev
  4. wget -c  http://nginx.org/download/nginx-1.0.5.tar.gz
  5. tar -zxf nginx-1.0.5.tar.gz
  6. wget -c http://wiki.nginx.org/images/5/51/Nginx-accesskey-2.0.3.tar.gz
  7. tar -zxf Nginx-accesskey-2.0.3.tar.gz
  8. svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only
  9. curdir=$(pwd)
  10. cd nginx-1.0.5
  11. ./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   
  12. make
  13. make install
复制代码
贴一个debian的
20#
发表于 2011-9-26 06:43:35 | 只看该作者
学习了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-11 06:32 , Processed in 0.068509 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表