hello!python!

nginx upstream配置

upstream *.com {
server 127.0.0.1:5000 weight=10 max_fails=2 fail_timeout=30s;
}

server {
listen 80;
listen 8080;
server_name *.*.com;
access_log /home/finance/Logs/nginx/*.*.com;
error_log /home/finance/Logs/nginx/*.*.com_error.log warn;

location / {
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://*.*.com;
expires 0;
client_max_body_size 1000m;
}

location /logs/ {
autoindex off;
deny all;
}
}

posted @ 2018-10-22 10:24  你坚持了吗  阅读(1014)  评论(0编辑  收藏  举报
hello!python!