Forum

SSL certificate question

Fred
11 November 2015, 12:01
Hi Hugo,

I run 1 webserver and multiple domains on Hiawatha...
I have 1binding setup for port 80 and so far it was ok...

I now need to have ssl on 3 of my domains but I cannot work out how to do it as I can only have 1 binding setup for por 443

Could you please post an example if its possible?

Thnak you
Fred
Hugo Leisink
11 November 2015, 21:23
Use the TLScertFile option inside the virtual host. The one in the binding will be the default, in case the IP address or some unknown hostname is used in the Host header. If one of the three known hostnames is used, the one from the virtual host record is used.

Binding {
...
TLScertFile = /some/path/default.pem
}

VirtualHost {
Hostname = www.example.com
...
TLScertFile = /some/path/example.com.pem
}

...
This topic has been closed.