On Wed, 02 Sep 2015 13:57:40 GMT, Kilomoana wrote:

Hi,

I receive the following error:

NET::ERRCERTCOMMONNAMEINVALID

from a certificate I use with a vibe.d server. Is it possible to set Apache like Virtual Hosts (ServerAlias)?

Or is there another workaround for this error. Vibe.d version is 0.7.21.

Error link:
https://46.253.146.132:8087/crossdomain.xml

Greetings

Kilo Moana

Virtual hosts are supported using the HTTPServerSettings.hostName field - calling listenHTTP multiple times with the same port but different host names will cause the server to dispatch requests to the appropriate host name automatically. It will also use SNI if different virtual hosts have different TLS certificates.

But the problem in this case AFAICS cannot be solved on the server side. The client simply has to connect to https://yxz.gamigo.com/crossdomain.xml instead of directly to the IP address. The gamigo.com DNS server then has to have the IP address configured for that sub domain.