M
M
mixailkornia2022-03-26 12:21:51
Flask
mixailkornia, 2022-03-26 12:21:51

2 or more SITEs to 1 IP?

Tell.
There are 2 pethon flaska projects.
each project runs on a local IP
127.0.0.1:5001
127.0.0.1:5000
Both projects have the same IP address Accessible from the external internet.
Access is available only on port 80. for site.com/ The
question is how OR what software to tell.
That when opening
site.com redirect locally to 127.0.0.1:5001
site1.com redirect locally to 127.0.0.1:5000.

OR maybe there are other methods to run multiple applications available from outside.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2022-03-26
@bacon

install nginx and proxy outside through proxy_pass

D
Drno, 2022-03-26
@Drno

nginx proxy Do

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question