公告
财富商城
积分规则
提问
发文
2019-01-30 00:24发布
霸刀☆藐视天下
upstream app_front_static { server 192.168.206.105:80; }
Never seen it before, anyone knows, what it means?
upstream defines a cluster that you can proxy requests to. It's commonly used for defining either a web server cluster for load balancing, or an app server cluster for routing / load balancing.
upstream
It's used for proxying requests to other servers.
An example from http://wiki.nginx.org/LoadBalanceExample is:
http { upstream myproject { server 127.0.0.1:8000 weight=3; server 127.0.0.1:8001; server 127.0.0.1:8002; server 127.0.0.1:8003; } server { listen 80; server_name www.domain.com; location / { proxy_pass http://myproject; } } }
This means all requests for / go to the any of the servers listed under upstream XXX, with a preference for port 8000.
最多设置5个标签!
upstream
defines a cluster that you can proxy requests to. It's commonly used for defining either a web server cluster for load balancing, or an app server cluster for routing / load balancing.It's used for proxying requests to other servers.
An example from http://wiki.nginx.org/LoadBalanceExample is:
This means all requests for / go to the any of the servers listed under upstream XXX, with a preference for port 8000.