I would like to know if the SSL certification would still be valid in the scenario. By valid I mean it will display both sites with SSL certificate without any issues or errors etc.
I have two external URL's hello.com
and world.com
for example. and I have an internal url at internal.com
for instance. both hello.com
and world.com
resolve to one IP address lets say 8.8.8.8
. Below is my setup for apache virtual host using IP-based SSL.
<VirtualHost 8.8.8.8:443>
ServerName hello.com
ServerAlias world.com www.world.com
SSLEngine On
SSLCertificateFile /etc/apache2/ssl.crt/hello.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/hello.key
Redirect / https://hello.com
ProxyPreserveHost On
<Location />
ProxyPass http://internal.com:8080/
ProxyPassReverse http://internal.com:8080/
</Location>
</VirtualHost>
So I guess the question is above so, go!