• nginx.conf



    #user  nobody;
    worker_processes  2;

    #error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;

    #pid        logs/nginx.pid;


    events {
        worker_connections  1024;
    }


    http {
        include       mime.types;
        default_type  application/octet-stream;

        #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        #                  '$status $body_bytes_sent "$http_referer" '
        #                  '"$http_user_agent" "$http_x_forwarded_for"';

        #access_log  logs/access.log  main;

        sendfile        on;
        #tcp_nopush     on;

        #keepalive_timeout  0;
        keepalive_timeout  65;
        
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 2 256k;#8 128
        fastcgi_busy_buffers_size 256k;
        fastcgi_temp_file_write_size 256k;
        fastcgi_intercept_errors on;

        send_timeout 60;

        client_max_body_size 500m;
        client_body_buffer_size 1024k;

        #服务器的集群  
        upstream eipserver { 
                
            #ip_hash;
            #server    172.29.201.218:8086  weight=1;#服务器配置   weight是权重的意思,权重越大,分配的概率越大。  
            server    172.29.201.218:8086  weight=1;
                    server    172.29.201.218:8087  weight=1;   
                    server    172.29.201.218:8088  weight=1;    
        }


        #gzip  on;

                    
        server {
            listen       9080;
            server_name  172.29.201.187;
            charset utf-8;
            index index.html;

            location / {
                proxy_pass http://172.29.201.187:9528/;
                proxy_set_header Host $host:9080;
            }

            location /uim {
                #yuyongjun
                #proxy_pass http://172.29.201.218:8087/collateral-web;
                # 在
                # proxy_pass http://172.29.201.218:2204/uim;
                # 离开
                # proxy_pass http://172.29.202.223:2204/uim;
                #lisongsong 
                #proxy_pass http://172.29.201.218:8087/collateral-web;
                # proxy_pass http://172.29.201.152:1002/collateral-web;
                proxy_pass http://172.29.202.232:2204/uim;
                
                proxy_set_header Host $host:9080;
            }


        }

    }
  • 相关阅读:
    .net http大文件断点续传上传
    asp.net http大文件断点续传上传
    VUE http大文件断点续传上传
    JavaScript http大文件断点续传上传
    ceph之查看osd上pg的分布
    linux 文件系统
    Ceph对象存储网关中的索引工作原理<转>
    ceph 参数说明<转>
    iptables 配置
    c++ 回调类成员函数实现
  • 原文地址:https://www.cnblogs.com/onesea/p/14578280.html
Copyright © 2020-2023  润新知