I
I
Ilya2015-01-15 01:40:38
MySQL
Ilya, 2015-01-15 01:40:38

How to separate nginx, apache, mysql, etc. to different servers?

I googled for a very long time, but I did not find sane articles and that everything was described from scratch.
The only thing I found is _ https://xakep.ru/2013/11/02/server-max-isolaion-se...
Tell me which way to dig.
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2015-01-15
Protko @Fesor

Docker. Perhaps not exactly what you need, but in my opinion a much more rational solution than using KVM for this.
You better tell me why you want to do it. The way to achieve them also depends on the goals.

I
index0h, 2015-01-15
@index0h

Judging by the link, proxy nginx-> apache2 is used.
In fact, in the nginx settings, you will need to register the correct ip of the server with apache2 + on the server with apache2, the port to which you are proxying from the server with nginx must be open and available.
It would be better to place statics on a server with nginx, if the project is complete - you will need to do a diploma both on the server with nginx and on the server with apache2, but scripts on nginx should be disabled.
As for mysql, I don't understand what your problem is. The server and port with mysql must be available for the server with apache2. Specifically, you specify the connection to mysql in the settings of your scripts.

E
Eugene, 2015-01-15
@Nc_Soft

You take 3 servers:
on the first one you put Apache
on the second one you put nginx , in which the dynamics goes from proxy_pass to the ip of the server with Apache on
the third one you put mysql
one is normal.
And when everything is on one server, it will work better, because no time is wasted on these additional network connections.

I
Ilya, 2015-01-15
@ArtMavir

Found a very good site on the subject.
Found almost all the answers to the question.
www.highload.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question