How to bulk Enable/Disable Force SSL Across the Cluster using ApiMachine Tools?

Manage Force SSL (WebUI Method)

 

  1. Open cPFence WebUI ➜ Tools & UtilitiesApiMachine Bulk Tools.
  2. Choose your target domains via the selector or leave it unchecked for the entire cluster.
  3. Click Bulk Enable Force SSL to force HTTPS, or Bulk Disable Force SSL to allow HTTP while troubleshooting.
  4. Confirm the action; the UI streams Enhance API responses for each domain.

Always ensure certificates exist before forcing HTTPS to avoid redirect loops.

Command Line (CLI) Method

  1. SSH into the Main Control Panel.
  2. Enable redirects:
    cpfence --bulk-enable-force-ssl-cluster
  3. Disable them when needed:
    cpfence --bulk-disable-force-ssl-cluster

Use the disable option briefly when diagnosing mixed-content or CDN issues.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Bulk Enable Force SSL Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Bulk Enable Redis Caching Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Bulk Generate Mail SSL Certificates Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Bulk Generate SSL Certificates Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Generate an API Token for cPFence, and Is It Required?

The cPFence API token must be generated in your Enhance Control Panel. Follow the steps below to...