Home > other >  Excuse me, great god, nginx. Two segments in the conf grammar do not know what meaning be
Excuse me, great god, nginx. Two segments in the conf grammar do not know what meaning be

Time:09-24

The first paragraph as shown below, the {{platform_port}} this variable is from? Where is defined?

# paas app
Server {
Listen {{platform_port}};
Server_name *. {{platform_domain}}; # Wildcard app domain

Error_log/data/infra/nginx/log/app. Error. The log warn;
Access_log/data/infra/nginx/log/app. Access. Log the main;

Include the conf. D/include/proxy. Conf.
Include the conf. D/include/error_page. Conf.

The location/{
If ($host ~ * ([. ^ \] + \.) (. *)) {
The set $vhost $1 - app;
Proxy_pass http://$vhost;
}
}
}
The second paragraph as follows: the following code in this section of the upstream is what mean? What is third party modules provide? Refer to

Upstream gateway - service {
{% for host groups in [' platform_gateway] %} server {{host}} : 8011;
{% endfor %}
}

CodePudding user response:

Only know upstream do load balancing, pay attention to your problem
  • Related