I have the following setup:
- one public IP
- 2 different domain names pointing to the same IP address: domain1.com and domain2.com
- 2 different ssl certificates: one for domain1.com and one for domain2.com
- 2 physical machines on the same local network (192.168.1.10 and 192.168.1.20) working with Apache2 and debian 8.5
I tested both servers, independently transmitting port 443 traffic to any of the machines. They work well.
Now I forward all requests to port 443 coming to the public IP address to the first server in 192.168.1.10, and I would like this server to act as the https server for https://domain1.com and redirect the https: / /domain2.com to the address 192.168.1.20
I tried setting up the reverse proxy on the first machine. It redirects requests to domain2 to the machine at 192.168.1.20, but it serves as a certificate for domain1. How to configure reverse proxy to provide the correct certificate for each of my servers?
thank you in advance. Julia
source share