Answer the question
In order to leave comments, you need to log in
Is it possible to run Apache and Nginx on the same port and different IPs?
Hello.
There was a need to start apache and nginx on the same port, there are several IP addresses on the server, for apache I registered Listen IP: 80, but, unfortunately, this did not help. Apache won't start, nginx uses a different IP. Is it possible somehow to start on the same port and different IP apache and nginx at the same time?
Answer the question
In order to leave comments, you need to log in
Yes, there should be no problems, the main thing is to explicitly indicate to each of the services what IP they can listen to, so that there is no option with 0.0.0.0. Show the output of netstat -nlp maybe nginx is listening on all IPs. Even for interest, I deployed it on a virtual machine, see the screen of work and conclusions:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question