L
L
LebedevFF2019-12-27 23:06:00
Apache HTTP Server
LebedevFF, 2019-12-27 23:06:00

How to redirect a domain to a local port?

Several php-based sites are installed on one server, in this case the server runs as a background process and has port 8080, for example, you need to display the page without adding a port to the domain (80 should be). How I see it(domen"site.com" -> 46.254.254.254:80/homesite/ -> 192.168.1.100:8080) How to implement it? And the use of port 80 blocks Apache, without it other sites will not work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex1478, 2019-12-27
@alex1478

Remove Apache from external port 80, put nginx in proxy mode for all sites.
UPD: Apache can also work in reverse proxy mode, probably you just need it www.egoroff.spb.ru/portfolio/mod_proxy.html

L
Lev Zabudkin, 2019-12-28
@zabudkin

No way. Sasha, you don't even need to reassure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question