VPS侦探论坛

 找回密码
 注册
查看: 7497|回复: 5

substitutions4nginx 到底怎么用?

[复制链接]
发表于 2011-9-14 14:58:59 | 显示全部楼层 |阅读模式

substitutions4nginx 到底怎么用?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-9-14 15:02:33 | 显示全部楼层


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 这句话怎么设置,请军哥赐教!谢谢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-9-14 15:03:57 | 显示全部楼层

模块路径
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-9-14 15:04:32 | 显示全部楼层



  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字段?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-9-14 15:06:47 | 显示全部楼层

原帖由 licess 于 2011-9-14 15:03 发表
模块路径


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

恩?我用WINSCP登录进入,,然后怎么设置这个什么所谓的模块路径呢?是不是要修改nginx.conf文件?

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-9-14 19:01:22 | 显示全部楼层

substitutions4nginx模块放哪你就写哪
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-5 06:11 , Processed in 0.026933 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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