按(Nginx反向代理实践)教程出错
http://hostloc.wiki/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
yc006t yc006t
演示:http://richlog.kvmla.com/ yc019t 加分:victory:
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://hostloc.wiki;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Referer http://hostloc.wiki;
proxy_set_header Host hostloc.wiki;
proxy_set_header Accept-Encoding "";
}
}#Test Nginx configure file
/usr/local/nginx/sbin/nginx -t
#Restart Nginx......
/usr/local/nginx/sbin/nginx -s reload 收藏了
页:
[1]
2