VPS侦探论坛

标题: substitutions4nginx 到底怎么用? [打印本页]

作者: goodbaby    时间: 2011-9-14 14:58
标题: substitutions4nginx 到底怎么用?
substitutions4nginx 到底怎么用?
作者: goodbaby    时间: 2011-9-14 15:02
InstallationTo install, get the source with subversion:
svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4ngin

x-read-onlyand then compile nginx with the following option:

./configure --add-module=/path/to/module

我SVN以后,然后不明白./configure --add-module=/path/to/module 这句话怎么设置,请军哥赐教!谢谢
作者: licess    时间: 2011-9-14 15:03
模块路径
作者: goodbaby    时间: 2011-9-14 15:04
  1. server
  2. {
  3. listen 80;
  4. server_name www.abc.com;

  5. location / {
  6. proxy_pass http://twitter.com/;
  7. proxy_redirect off;
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

  10. }
  11. }
复制代码


还有如何使用这个规则,能不能补充好这段代码,然后屏蔽那些多余的twitter.com字段?
作者: goodbaby    时间: 2011-9-14 15:06
原帖由 licess 于 2011-9-14 15:03 发表
模块路径


./configure --add-module=/path/to/module

恩?我用WINSCP登录进入,,然后怎么设置这个什么所谓的模块路径呢?是不是要修改nginx.conf文件?
作者: licess    时间: 2011-9-14 19:01
substitutions4nginx模块放哪你就写哪




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4