Yes Our company's production environment is an nginx cluster (3 nginx) and a php cluster (5 machines). nginx and php do not need to be deployed in the same environment.
By configuring upstream, the dynamic request is forwarded to php for processing, and then returned to nginx and then returned to the client. If you take a look at nginx’s official configuration of PHP, it’s all in this mode.
But if there is static content in the project, the corresponding code needs to be deployed on the nginx machine (php is not required)
Yes
Our company's production environment is an nginx cluster (3 nginx) and a php cluster (5 machines). nginx and php do not need to be deployed in the same environment.
By configuring upstream, the dynamic request is forwarded to php for processing, and then returned to nginx and then returned to the client. If you take a look at nginx’s official configuration of PHP, it’s all in this mode.
But if there is static content in the project, the corresponding code needs to be deployed on the nginx machine (php is not required)