N
N
necromind2017-03-20 11:51:58
System administration
necromind, 2017-03-20 11:51:58

How to redirect a subdomain to another server?

Now the redirection of the https://sub.example.com subdomain goes through nat to freebsd to the internal ip 192.168.0.3 (this ip is a Windows machine with Exchange):
redirect_port tcp 192.168.0.3:443 443
And with the receipt of a certificate for the main domain, it became necessary to use this port 443. Accordingly, it is necessary to somehow redirect requests from the subdomain to the internal ip while maintaining the correct url in the address bar. How to do it ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2017-03-20
@Zarom

You will have to configure nginx as a reverse proxy instead of NAT.
For example, based on the example in this article, section 7
https://www.digitalocean.com/community/tutorials/h...
Or look for other examples

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question