On 17.04.2020 19:25, mail mail wrote:
Hello.
There are two web servers in LAN:
192.168.1.10
- site1.mydom.com
- site2.mydom.com
- site3.mydom.com
192.168.1.20
- portal.mydom.com
in iptables, all requests for ports 80 and 443 are redirected to 192.168.1.10. The certificates received from letsencrypt for site1,2,3 are stored and connected on 192.168.1.10 - and here everything works, there are no questions. The certificates received from letsencrypt for the portal are stored and connected to 192.168.1.20 - and the question is: How to write VirtualHost to 192.168.1.10 so that all requests (http, https) for portal.mydom.com go to 192.168.1.20?
Thank you in advance!

you can configure 192.168.1.10 as a proxy for 192.168.1.20 for accessing  portal.mydom.com

this looks simiar to this:

<VirtualHost 192.168.1.10:80>
ServerName portal.mydom.com:80

ProxyPass / http://192.168.1.20/
ProxyPassReverse / http://192.168.1.20/
</VirtualHost>

similar with 443 (https)



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to