A
A
Alexander Belyakov2016-04-26 15:00:04
Nginx
Alexander Belyakov, 2016-04-26 15:00:04

How to make nginx and apache2 work on port 80 of the same interface?

Given: Ubuntu Server 14.04; Nginx; Apache2
There is an eth0 interface and a subinterface eth0:0. Both have different ip addresses.
There is Nginx, which listens on port 1935 and gives on 80 and 1935 ports eth0.
There is Apache2 which listens on port 8080 eth0:0.
Question: how to make Apache2 listen on port 80 eth0:0?
Any attempt to set port 80 does not let Nginx through. It is necessary to ensure their simultaneous operation on different ip, but on the same port 80.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-04-26
@parce56

Are you only setting the port or ip:80 in apache?
You need to hardcode which ip:port to listen to both nginx and apache, otherwise they will listen to all available ip.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question