upstream fdfs_group1 {

    server 172.31.0.96:8088 weight=1 max_fails=2 fail_timeout=30s;

    server 172.31.2.45:8088 weight=1 max_fails=2 fail_timeout=30s;

}

#proxy_cache_path /opt/machtalk/nginx/http-cache levels=1:2 keys_zone=http-cache:20m inactive=1d max_size=100m;

server {
    listen       8090;
    server_name  localhost,_;

    access_log /opt/machtalk/nginx/logs/a.8090.log;
    error_log /opt/machtalk/nginx/logs/e.8090.log;

    location /group1/M00 {
        proxy_next_upstream http_502 http_504 error timeout invalid_header;
        #proxy_cache http-cache;
        #proxy_cache_valid  200 304 12h;
        #proxy_cache_key $uri$is_args$args;
        proxy_pass http://fdfs_group1;
        proxy_redirect              off;
        proxy_set_header            Host $host;
        proxy_set_header            X-real-ip $remote_addr;
        proxy_set_header            X-Forwarded-For $proxy_add_x_forwarded_for;
    }

}
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""