The question is is it possible to do following on Ubuntu with apache2, ProxyPass and SSL enabled:
I have main server, let's say it's domain is
http://domain.com
- working OKI have SSL enabled with certificate for
domain.com
andwww.domain.com
andhttps://domain.com
is working OKBy default, I have 2 conf files in
/etc/apache2/sites-enabled
-000-default
handling the *.80 virtual hosts anddefault-ssl
handling the *.443 virtual hosts. In this second file I have specified all certificate files fordomain.com
In
000-default
I have ProxyPass set redirectiong to server handling the domainsubdomain.domain.com
on local computer 192.168.0.100 - working OKI have certificates installed on 192.168.0.100 for
subdomain.domain.com
. If I point my browser tohttps://subdomain.domain.com
it gives warning, because it loads the certificate fordomain.com
.
How to make so, that the request for https://subdomain.domain.com
to be transfered to 192.168.0.100 and load it's files (for https://subdomain.domain.com
)?