找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 89|回复: 9

按(Nginx反向代理实践)教程出错

[复制链接]

37

主题

496

回帖

1139

积分

金牌会员

积分
1139
发表于 2011-10-29 20:27:11 | 显示全部楼层 |阅读模式
http://www.hostloc.com/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 ~]#

要怎么做呢?
回复

使用道具 举报

315

主题

1万

回帖

2万

积分

论坛元老

积分
23115
发表于 2011-10-29 22:19:07 | 显示全部楼层
楼下来
回复

使用道具 举报

154

主题

765

回帖

2116

积分

金牌会员

积分
2116
发表于 2011-10-29 22:26:23 | 显示全部楼层
yum 一下svn
回复

使用道具 举报

37

主题

496

回帖

1139

积分

金牌会员

积分
1139
 楼主| 发表于 2011-10-29 22:27:41 | 显示全部楼层
配置 nginx.conf

从里面哪里改呢?
回复

使用道具 举报

1286

主题

5313

回帖

1万

积分

论坛元老

积分
14664
发表于 2011-10-29 22:47:57 | 显示全部楼层
mark一下。 我是小白
回复

使用道具 举报

121

主题

2885

回帖

6207

积分

论坛元老

积分
6207
发表于 2011-10-29 22:51:35 | 显示全部楼层
回复

使用道具 举报

57

主题

531

回帖

1257

积分

金牌会员

积分
1257
发表于 2011-10-29 23:14:46 | 显示全部楼层
加分



mkdir /usr/local/nginx/conf/vhost

vi /usr/local/nginx/conf/vhost/hostloc.conf[ol]
  • server
  •         {
  •         listen 80;
  •         server_name 域名;
  •                 access_log off;
  •         location / {
  •                 proxy_pass http://www.hostloc.com;
  •                 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;
  •                 proxy_set_header Host www.hostloc.com;
  •                 proxy_set_header Accept-Encoding "";
  •                 }
  •         }[/ol]复制代码#Test Nginx configure file
    /usr/local/nginx/sbin/nginx -t

    #Restart Nginx......
    /usr/local/nginx/sbin/nginx -s reload
  • 回复

    使用道具 举报

    769

    主题

    1万

    回帖

    2万

    积分

    论坛元老

    积分
    24231
    发表于 2011-10-29 23:50:14 | 显示全部楼层
    收藏了这玩意能活多长时间
    回复

    使用道具 举报

    28

    主题

    309

    回帖

    772

    积分

    高级会员

    积分
    772
    发表于 2011-10-30 00:10:21 | 显示全部楼层
    学习 收藏
    回复

    使用道具 举报

    35

    主题

    1410

    回帖

    2995

    积分

    金牌会员

    积分
    2995
    发表于 2011-10-30 00:11:00 | 显示全部楼层
    -bash: svn: command not found
    ____________________________________
    没装SVN
    apt-get -y install subversion
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-4-23 08:48 , Processed in 0.020154 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

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