zoukankan      html  css  js  c++  java
  • 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;
            }


        }

    }
  • 相关阅读:
    bash帮助文档简单学习;bash手册翻译
    jmeter的master、slave模型启动方法
    如何查看pip安装包的所有版本;以及ipython的安装
    简单过下bash/sh脚本基本知识吧
    Celery 启动报错 can_read() got an unexpected keyword argument timeout
    paramiko执行命令超时的问题
    远程的jmeter自动执行完,如何回调通知被调用者“结束”状态
    记录一下:关于mysql数据误删除恢复的问题
    数据库Sharding的基本思想和切分策略
    数据库分库分表(sharding)系列(一) 拆分实施策略和示例演示
  • 原文地址:https://www.cnblogs.com/onesea/p/14578280.html
Copyright © 2011-2022 走看看