How to allow HTTPS and configure certificates with a domain that has Hosting type set as Forwarding?
Forwarding from HTTPS website is not yet implemented in Plesk.
As a workaround, configure the forwarding type manually on a domain with Website hosting and set up the certificate:
For Linux
-
Log in to Plesk GUI
-
Change the Hosting type of the domain to Website hosting in Domains > example.com > Web Hosting Access
-
Navigate to Domains > example.com > Apache & nginx Settings
-
Add the following directives to both Additional directives for HTTP and Additional directives for HTTPS:
Redirect 301 / https://example.net/Note: Replace the https://example.net/ with the desired target location. In case 302 redirect is required, change 301 to 302.
ORAdd the following directives to Additional nginx directives, if it is present:
return 301 $scheme://example.net$request_uri;
Note: The directives above can only be modified by Plesk Administrator. In case they are absent, contact service provider and ask to apply this article.
For Windows
-
Log in to Plesk GUI
-
Navigate to Domains > example.com > File Manager
-
Open web.config file and add the following content right below the <system.webServer>declaration:
<httpRedirect enabled="true" destination="https://example.net/" httpResponseStatus="Permanent" />Note: Replace the https://example.net/ with the desired target location. In case 302 redirect is required, change Permanent status to Found.