按(Nginx反向代理实践)教程出错
http://www.hostloc.com/thread-85514-1-1.html按教程做的:svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only //下载
这里下载不了
# svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only
-bash: svn: command not found
#
要怎么做呢? 楼下来 yum 一下svn 配置 nginx.conf
从里面哪里改呢? mark一下。 我是小白 http://www.kvm.la/2011/09/26/33.html
006.gif
006.gif
演示:http://richlog.kvmla.com/
019.gif
加分
victory.gif
mkdir /usr/local/nginx/conf/vhost
vi /usr/local/nginx/conf/vhost/hostloc.conf[*]
[*]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 "";
[*] }
[*] }复制代码#Test Nginx configure file
/usr/local/nginx/sbin/nginx -t
#Restart Nginx......
/usr/local/nginx/sbin/nginx -s reload 收藏了这玩意能活多长时间 学习 收藏 -bash: svn: command not found
____________________________________
没装SVN
apt-get -y install subversion
页:
[1]