P
P
Pavel2021-01-30 17:17:07
Nginx
Pavel, 2021-01-30 17:17:07

Is there an example or how to google nginx internet->ip#1, ip#2?

I don’t know how to properly form the header, if something please correct it

, there is a static ip from the provider, there is a server with nginx, there are also different servers or PCs inside the local network that users need to be directed to, this is nextcloud and proxmox and its virtual machines and RDP windows and a bunch of other things

and there is a domain from the hosting, I use its subdomains and send it to the provider's ip, it is necessary that by name1.domain.com it sends to the ip of the local PC No. 1 80-> 443 port + ssl if necessary

Tell me how to be in in such a case? Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2021-01-30
@mrusklon

on a computer with a static address, install nginx and proxy through it to local computers.
https://docs.nginx.com/nginx/admin-guide/webserve...

A
Alexey Dmitriev, 2021-01-30
@SignFinder

Connect to the server with nginx static ip. The second interface to the local network.
And then you can proxy all https \ https through nginx, and the rest through iptables using DNAT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question