按(Nginx反向代理实践)教程出错
https://www.hs2v.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一下。 我是小白 加分
static/image/smiley/default/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 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 "";
[*] }
[*] }复制代码#Test Nginx configure file
/usr/local/nginx/sbin/nginx -t
#Restart Nginx......
/usr/local/nginx/sbin/nginx -s reload 收藏了
页:
[1]