Search code examples
ibm-mobilefirstwebsphere-libertyibmhttpserver

Possible conflict error using 443 port in IBM HTTP Server configuration


I'm trying to get visibility of two IBM MobileFirst apps trough two different domains, with two different IHS configurations (independent HTTP Server and Plugin configurations) using the same secure port (443). I mean, I have domain1.com and domain2.com, and I need to use the port 443 to communicate with the public users.

My app server is an IBM Liberty Profile. I found a question related (multiple domains at the same secure port) but is deployed on an IIS configuration.

The error that I can see at the log is:

192.168.252.123 - - [18/Apr/2017:04:29:36 -0400] "\x16\x03" 501 292

Googleing I found something related to this error on an Apache configuration and at the end of the article says:

Probably you have a section with a specific VirtualHost IP address conflicting with the default VirtualHost. A section something like this "VirtualHost 192.168.0.1:443" cannot be used with the default section like this "VirtualHost default:443".

When I take a look in my httpd.conf file I can't find another mention of a virtualhost or the port that I use.

Is this configuration possible or is absolutely neccesary to use different secure ports for both apps?


Solution

  • It is required to have two ports for two separate instances of an HTTP server, but it's generally not required to have two instances of an HTTP server simply to host two domain names.

    Any release of IBM HTTP Server (IHS) can serve two certificates on two domains in one instance if the domains use a different IP address.

    If they share an IP address, IHS prior to 9.0 requires a single certificate to be valid for both domains (wildcard, SubjectAltName).

    IHS 9.0 supports SNI and 2 certs can be used on 2 domains with just a single IP address. The 9.0 manual has many examples. You'd be using 2 *:443 Virtual Hosts.