用nginx + django 配置了個網站,網站請求有點多,刷新網頁幾十次會有一次502 bad ,刷新一次又好了,想用個臨時解決辦法是,在nginx只返回502時,自動刷新下網址,請問nginx里如何寫呢?下面是現在的nginx配置文件:server { charset utf-8; listen 80; server_name www.yourdomain.com;
location /static {
alias /home/wangqidan/sites/www.yourdomain.com/yourdomain/static;
} location / {
proxy_set_header Host $host; proxy_pass http://unix:/tmp/www.yourdomain.com.socket;
}
}
- 2 回答
- 0 關注
- 1092 瀏覽
添加回答
舉報
0/150
提交
取消