Forum

Multiple hosts and SSL's

Kapageridis Stavros
16 August 2017, 16:06
Hi , i need a little help here.
I want to host multiple domains with multiple ssl certificates (one for every domain). The SSL is provided by CloudFlare.
I setup and configure the first domain and it works correctly.

I use the following configuration for the first domain inside hiawatha.conf
# BINDING SETTINGS
Binding {
Port = 443
# Interface = ::1
MaxKeepAlive = 30
TimeForRequest = 3,20
TLScertFile = tls/projectvault.ovh
}

Now i need to continue with the rest of the domains.
Is there any way to configure the binding per host ?
If it's possible , can you please provide me an example ?

Best Regards
Stavros
Hugo Leisink
16 August 2017, 16:19
Simply use the TLScertFile setting within a VirtualHost section:
VirtualHost {
...
TLScertFile = tls/domain.tld.crt
}

This is also explained in the Bindings HOWTO, paragraph 'Server Name Indication'.

The TLScertFile in the binding section should be seen as the default certificate, when no matching virtual host can be found.
Kapageridis Stavros
16 August 2017, 19:43
Thank you very much Hugo.
This topic has been closed.