Answer the question
In order to leave comments, you need to log in
Is it possible to split 3000 domains into 3 IPs on NGINX?
The current task could not be solved by the 3rd system administrator, so I appeal to the community.
Currently there are 3 hosts and 3000 domains, where every 1000 is delegated to each host.
The server is running NGINX and the problem is that all domains open the page from the first host.
Task: without prescribing each domain in nginx so that the content is given according to the delegated IP
Answer the question
In order to leave comments, you need to log in
The current task could not be solved by the 3rd system administrator, so I appeal to the community.I'm afraid this is simply not their qualification since they could not solve such a banal task.
There is a variable $server_addr
based on which you can adjust the responses.
For exampleroot /var/www/$server_addr/
Setting the default_server directive to listen
does not help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question