A
A
AgeWeb2014-08-22 15:31:11
Nginx
AgeWeb, 2014-08-22 15:31:11

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

1 answer(s)
S
Sergey Petrikov, 2014-08-22
@AgeWeb

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:
ae510098647d4826b9c2a8a76aefbdd6.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question