nginx - config

Posted xiaobin-hlj80

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx - config相关的知识,希望对你有一定的参考价值。

 

1. config

Default load balancing configuration

http {
    upstream myapp1 {
        server srv1.example.com;
        server srv2.example.com;
        server srv3.example.com;
    }

    server {
        listen 80;

        location / {
            proxy_pass http://myapp1;
        }
    }
}

 

Reference:

1. nginx - load balancing

以上是关于nginx - config的主要内容,如果未能解决你的问题,请参考以下文章