立即注册  找回密码
 立即注册
CeraNetworksBGVM服务器主机交流会员请立即修改密码Sharktech防护
查看: 112|回复: 6

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

[复制链接]

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

[复制链接]

13

主题

35

回帖

235

积分

中级会员

积分
235
ppt111

13

主题

35

回帖

235

积分

中级会员

积分
235
2011-10-29 20:27:11 | 显示全部楼层 |阅读模式
https://www.hs2v.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 ~]#

要怎么做呢?
回复

使用道具 举报

48

主题

1529

回帖

5032

积分

论坛元老

积分
5032
cnweb

48

主题

1529

回帖

5032

积分

论坛元老

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

使用道具 举报

12

主题

77

回帖

368

积分

中级会员

积分
368
店长推荐

12

主题

77

回帖

368

积分

中级会员

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

使用道具 举报

13

主题

35

回帖

235

积分

中级会员

积分
235
ppt111 楼主

13

主题

35

回帖

235

积分

中级会员

积分
235
2011-10-29 22:27:41 | 显示全部楼层
配置 nginx.conf

从里面哪里改呢?
回复

使用道具 举报

440

主题

812

回帖

5215

积分

论坛元老

积分
5215
有容乃大

440

主题

812

回帖

5215

积分

论坛元老

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

使用道具 举报

23

主题

256

回帖

1039

积分

金牌会员

积分
1039
格格男

23

主题

256

回帖

1039

积分

金牌会员

积分
1039
2011-10-29 22:51:35 | 显示全部楼层
加分



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 https://www.hs2v.com;
  •                 proxy_set_header X-Real-IP $remote_addr;
  •                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  •                 proxy_set_header Referer https://www.hs2v.com;
  •                 proxy_set_header Host www.hs2v.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
  • 回复

    使用道具 举报

    5

    主题

    48

    回帖

    149

    积分

    注册会员

    积分
    149
    醒醒

    5

    主题

    48

    回帖

    149

    积分

    注册会员

    积分
    149
    2011-10-29 23:14:46 | 显示全部楼层
    收藏了
    回复

    使用道具 举报

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

    本版积分规则

    Archiver|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2025-3-16 11:06 , Processed in 0.020284 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

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