This situation is equivalent to nginx acting as a load balancer, and apache is responsible for parsing the PHP code First of all, the front-end files can be placed directly on nginx to speed up the response. PHP code is placed on the apache server. nginx needs to write the .php matching rules, and then nginx configures the load balancing server address and weight. This way you can respond.
This situation is equivalent to nginx acting as a load balancer, and apache is responsible for parsing the PHP code
First of all, the front-end files can be placed directly on nginx to speed up the response.
PHP code is placed on the apache server.
nginx needs to write the .php matching rules, and then nginx configures the load balancing server address and weight.
This way you can respond.