- Plesk for Linux
- Plesk for Windows
How to allow HTTPS and configure an SSL certificate on a domain in Plesk which has Hosting Type set as Forwarding in Domains > example.com > Hosting Settings?
Warning: Currently, it's possible to secure a forwarding domain only when Nginx is installed and enabled on the server.
To secure a domain with the Forwarding hosting type with an SSL certificate perform the following (commands are the same for Linux SSH terminal and Windows CMD):
Check if the Common Challenge directory is enabled on the server.
If the output of the command is as below:
# plesk ext sslit --common-challenge-dir -info
- Available: true
- Enabled: false
Execute the next command to enable the Common Challenge directory:
# plesk ext sslit --common-challenge-dir -enable
To secure a Forwarding hosting type domain with a free Let's Encrypt certificate via CLI
use the below command:
# plesk ext sslit --certificate -issue -domain example.com -registrationEmail email@example.com -secure-domain
- example.com is the name of the domain with Forwarding hosting type.
- firstname.lastname@example.org is the email address.
-secure-domain is the option for securing the domain name. For other available options check
plesk ext sslit --help.