How to set up SSL for your knowledge base with Apache

Configuring your white-labeled knowledge base for SSL and HTTPS lets your customers know the information they share online will be secure.


You can set up SSL for your white-labeled knowledge base domain with a reverse proxy server using Apache or Cloudflare.


Read about setting up SSL with Cloudflare here: Add HTTPS to your white-labeled knowledge base and chat link


To enable SSL with Apache, you’ll first need to obtain your own SSL certificate.

Here are the steps:

(tested in a Virtualmin environment with Apache/PHP 7.4 on Ubuntu 20.04) 


1 - Create an "A" record for your domain and point it to your own Apache web server.


2 - Create a virtual server (or sub server) using your selected domain. Include SSL site in the options.


3 - Get an SSL certificate and private key from a trusted certificate authority for your newly created site.


You can get a free SSL certificate from Let’s Encrypt, an open Certificate Authority from the Internet Security Research Group (ISRG) and the Linux Foundation.


4 - Under Server Configuration, edit the proxy server to enable the Proxy and add http://custom.tawk.help/ as the URL. Do not use HTTPS, as this will cause an SSL error.


5 - Finally, manually edit your new virtual server Apache.conf file and add the following:


ProxyPreserveHost: on

SSLProxyEngine: on

SSLProxyVerifyDepth: 10

SSLProxyCheckPeerCN: off

SSLProxyCheckPeerName: off

Here’s a sample configuration:

Substitute the details for your custom domain and SSL certificate

With SSL enabled and an HTTPS protocol, your knowledge base will be a secure site your customers will visit and search with confidence.

Was this article helpful?

4 out of 4 liked this article

Still need help? Message Us