Trying to configure multiple virtual domains with only one virtual domain configured to be SSL, rest are configured only on Port 80 (non-SSL).
Everything is good with xyz.org but when user access https://abc.org its provided with xyz.org certificate. We expect users to get an SSL error rather being server with xyz.org certificate (still error) and let them proceed.
<VirtualHost *:80>
ServerName xyg.org
RewriteEngine on
RewriteRule "^/(.*)" "https://www.xyz.org/$1" [L,R,NE]
</VirtualHost>
<VirtualHost *:443>
ServerName xyg.org
SSLEnable
SSLCompression off
SSLProtocolEnable TLSv12
SSLProtocolDisable SSLv2 SSLv3 TLSv10 TLSv11
SSLServerCert xyg.org
KeyFile /usr/IBM/HTTPServer/keys/pdsrv.kdb
CustomLog logs/access.log SSL
</VirtualHost>
<VirtualHost *:80>
ServerName abc.org
ServerAlias abc.org
RewriteEngine on
RewriteCond "%{HTTP_HOST}" "^www.abc.org" [OR]
RewriteCond "%{HTTP_HOST}" "^abc.org"
RewriteRule "^(.+)" "https://www.abc.org/redirect" [L,R,NE]
</VirtualHost>
#Support#SupportMigration#WebSphereHTTPServer