Closed ZoomQuiet closed 9 years ago
不能正确地重定向
location ^~ /static/ {
#alias /opt/www/PyConChina/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/static/ ;
expires off;
}
location /2013/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/2013/ ;
expires off;
}
location /uli/2013/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/2013/ ;
expires off;
}
location /2012 {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/2012/ ;
expires off;
}
location /uli/2012 {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/2012/ ;
expires off;
}
location /2011 {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/2011/ ;
expires off;
}
location /uli/2011 {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host pychina.qiniudn.com;
proxy_pass http://pychina.qiniudn.com/uli/2011/ ;
expires off;
}
强行升级所有 upstream 用 :80
现象
全部 502
分析
UliWeb 启动困难,完全无法自动重启
方案
进展