博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nginx.conf
阅读量:5306 次
发布时间:2019-06-14

本文共 3902 字,大约阅读时间需要 13 分钟。

#user  nobody;worker_processes  1;#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;    #gzip  on;        ################################  upstream default-tomcat-service-clsip-01-8080 {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 172.30.10.5:8080 max_fails=0 fail_timeout=0;        server 172.30.28.2:8080 max_fails=0 fail_timeout=0;    }    upstream default-tomcat-service-clsip-02-8080 {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 172.30.10.5:8080 max_fails=0 fail_timeout=0;        server 172.30.28.2:8080 max_fails=0 fail_timeout=0;    }    upstream default-tomcat-service-clsip-8080 {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 172.30.10.5:8080 max_fails=0 fail_timeout=0;        server 172.30.28.2:8080 max_fails=0 fail_timeout=0;    }    upstream default-tomcat-service-test01-8080 {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 172.30.10.5:8080 max_fails=0 fail_timeout=0;        server 172.30.28.2:8080 max_fails=0 fail_timeout=0;    }    upstream default-tomcat-service-test02-8080 {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 172.30.10.5:8080 max_fails=0 fail_timeout=0;        server 172.30.28.2:8080 max_fails=0 fail_timeout=0;    }    upstream default-tomcat-service-test022-8403 {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 127.0.0.1:8181 max_fails=0 fail_timeout=0;    }    upstream upstream-default-backend {        # Load balance algorithm; empty for round robin, which is the default        least_conn;        server 172.30.92.3:8080 max_fails=0 fail_timeout=0;    }    #######################################        server {        server_name gcp33.boco.com;        listen 8765;        listen [::]:8765;        set $proxy_upstream_name "-";        location /gcp11 {                       proxy_pass http://default-tomcat-service-clsip-8080;        }        location / {               proxy_pass http://upstream-default-backend;        }    }    server {        server_name gcp44.boco.com;        listen 8764;        listen [::]:8764;        set $proxy_upstream_name "-";        location /gcp33 {                    proxy_pass http://default-tomcat-service-clsip-02-8080;        }        location /gcp22 {            proxy_pass http://default-tomcat-service-clsip-01-8080;        }        location / {           proxy_pass http://upstream-default-backend;        }    }                 server {        server_name gcp2.boco.com;        listen 8765;        listen [::]:8765;        set $proxy_upstream_name "-";        location /gcp222 {                       proxy_pass http://default-tomcat-service-test022-8403;        }        location /gcp22 {                        proxy_pass http://default-tomcat-service-test02-8080;        }        location /gcp2 {                       proxy_pass http://default-tomcat-service-test01-8080;        }        location / {                       proxy_pass             http://upstream-default-backend;        }    }######################################}

 

转载于:https://www.cnblogs.com/guoziyi/p/7458173.html

你可能感兴趣的文章
[C#] - 打印DataGridView类
查看>>
机器学习笔记-----决策树算法1
查看>>
X皮书之初识Redis(上)
查看>>
我得找个时间把阮一峰的网络日志都看一遍
查看>>
Laravel学习笔记之单词记录
查看>>
《http权威指南》阅读笔记(八)
查看>>
多线程吃饺子练习
查看>>
GUID获取16位19位22位的唯一字符串
查看>>
LeetCode_5
查看>>
mongodb高级操作及在Java企业级开发中的应用
查看>>
gdb与coredump
查看>>
pip无法正常使用卸载并重新安装
查看>>
macOS Mojave 10.14上安装iTunes12.6
查看>>
VMware vSphere 5.5 update 2
查看>>
8 curl
查看>>
作业二:生成四则运算和二元一次方程
查看>>
SQL高级查询之一
查看>>
JSP总结
查看>>
第六次scrum meeting记录
查看>>
文本模式下命令的下达
查看>>