PyConChina / PyConCN

PyCon China offical website
http://cn.pycon.org
39 stars 5 forks source link

2011~13 UliWeb 静态化再发布 #28

Closed ZoomQuiet closed 9 years ago

ZoomQuiet commented 9 years ago

现象

全部 502

分析

UliWeb 启动困难,完全无法自动重启

方案

ZoomQuiet commented 9 years ago

工单 #19: 2011~13 UliWeb 静态化再发布 · PyConChina/staticpycon - GitCafe 迁移而来

ZoomQuiet commented 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;
}
ZoomQuiet commented 9 years ago

关联 #35

现在的问题是:

ZoomQuiet commented 9 years ago

强行升级所有 upstream 用 :80