Enabling SSL for IP Address

  • September 12, 2021
  • 0 Comments

If you are in need to have SSL with IP address, Cpanel currently does not support it

But as workaround, you can add this value in the apache configuration via WHM

1. Home »Service Configuration »Apache Configuration »Include Editor

2. In Pre VirtualHost Include, add this entry (replace the IP, cpanel path and SSL location)

<VirtualHost 1.1.1.1:443>

ServerName 1.1.1.1

DocumentRoot /home/cpanelname/public_html

SSLEngine on

SSLCertificateFile /etc/ssl/crtfilelocation.crt

SSLCertificateKeyFile /etc/ssl/privatekeylocation.key

SSLCertificateChainFile /etc/ssl/bundlekey.crt

</VirtualHost>


How helpful was this article to you?

Posting has been disabled.