全球主机交流论坛

标题: 按(Nginx反向代理实践)教程出错 [打印本页]

作者: ppt111    时间: 2011-10-29 20:27
标题: 按(Nginx反向代理实践)教程出错
http://www.sunk.eu.org/thread-85514-1-1.html
按教程做的:svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only           //下载
这里下载不了
[root@MyVPS ~]# svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only
-bash: svn: command not found
[root@MyVPS ~]#

要怎么做呢?
作者: cnweb    时间: 2011-10-29 22:19
楼下来
作者: 店长推荐    时间: 2011-10-29 22:26
yum 一下svn
作者: ppt111    时间: 2011-10-29 22:27
配置 nginx.conf

从里面哪里改呢?
作者: 有容乃大    时间: 2011-10-29 22:47
mark一下。 我是小白
作者: 格格男    时间: 2011-10-29 22:51
提示: 作者被禁止或删除 内容自动屏蔽
作者: 醒醒    时间: 2011-10-29 23:14
提示: 作者被禁止或删除 内容自动屏蔽
作者: Kvm    时间: 2011-10-29 23:50
http://www.kvm.la/2011/09/26/33.html


演示:http://richlog.kvmla.com/
作者: YCYCC    时间: 2011-10-30 00:10
加分

mkdir /usr/local/nginx/conf/vhost

vi /usr/local/nginx/conf/vhost/hostloc.conf

  1. server
  2.         {
  3.         listen 80;
  4.         server_name 域名;
  5.                 access_log off;
  6.         location / {
  7.                 proxy_pass http://www.sunk.eu.org;
  8.                 proxy_set_header X-Real-IP $remote_addr;
  9.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10.                 proxy_set_header Referer http://www.sunk.eu.org;
  11.                 proxy_set_header Host www.sunk.eu.org;
  12.                 proxy_set_header Accept-Encoding "";
  13.                 }
  14.         }
复制代码
#Test Nginx configure file
/usr/local/nginx/sbin/nginx -t

#Restart Nginx......
/usr/local/nginx/sbin/nginx -s reload
作者: vip1    时间: 2011-10-30 16:28
收藏了
作者: lin371552829    时间: 2011-10-30 16:58
这玩意能活多长时间
作者: wusir    时间: 2011-10-31 00:06
学习 收藏
作者: samuel    时间: 2011-10-31 02:10
-bash: svn: command not found
____________________________________
没装SVN
apt-get -y install subversion




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4