How can I set KBPublisher to use SSL?

You can set KBPublisher to use secure socket layers (SSL) for the whole site or for key functions. SSL is a security measure that establishes an encrypted link between the server and the client computer trying to access it. This protects data being sent in either direction (uploaded or downloaded) from being stolen by a hacker or a malicious program. When you see the URL (web address) of a site or application beginning "https:" instead of "http:", SSL is active for that URL.

When SSL is enabled and someone tries to access your knowledgebase using a URL beginning "http:", KBPublisher automatially changes the address to use the encoded "https:" address.

To enable SSL for KBPublisher

  1. Make sure your web server is configured to work with SSL.
  2. Edit the file kbp_dir/admin/config.inc.php, updating the variables according to the options below:

Variables

To enable SSL for your knowledgebase, set one or both of these variables in config.inc.php to "1":

Set the variable to "0" to turn SSL off for that area.

Using a custom port

By default, KBPublisher uses port 443 for SSL. You can specify a different port number by replacing "1" with the port number. If you want to use port 55, set ssl_admin or ssl_client like this:

Example Configurations

The Admin area and the Public area use SSL:

The Admin area uses SSL, but the Public area does not use SSL:

The Admin area and the Public area use SSL through port 55:

Fixing too many redirects issue

In some cases when everything adjusted correctly your may have "Too many redirects ..." error.
Try add below line to file /kbp_dir/admin/config.inc.php



Article ID: 410
Last updated: 8 Jan, 2024
Revision: 5
HowTo, Tips & Tricks -> KBPublisher -> How can I set KBPublisher to use SSL?
https://www.kbpublisher.com/kb/how-can-i-set-kbpublisher-to-use-ssl_410.html