Answer the question
In order to leave comments, you need to log in
How to parallelize two servers with websites?
there is a server, nginx + php5-fpm
because the load on one of the sites began to grow, we came to the conclusion that it was necessary to move the loaded site to a separate instance. Here is the task. Now there are two servers. on one there are several sites, on the second one is loaded. Could you poke your nose at what and where to read in order to set up the operation of these two servers?
If there was Apache on the backend, I would set up both on one and the other machine on the server and would indicate the root document to everyone, and nginx would simply proxy. But in my case, php5-fpm is configured and there is no Apache, and somehow there are no thoughts on how to tell php5-fpm where to get the files. In the virtual host settings, will the document root seem to refer to local files? Or to remote ones?
RESOLVED!
Turns out I was heading in the wrong direction. As a result, I configured proxy_pass and it all worked
Answer the question
In order to leave comments, you need to log in
somehow there are no thoughts how to tell php5-fpm where to get files
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question