- Plesk Onyx for Linux
- Plesk Onyx for Windows
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. Vote for the related feature request at Plesk User Voice.
As a workaround, configure the forwarding type manually on a domain with Website hosting and set up the certificate:
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:
CONFIG_TEXT: 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.
Add the following directives to Additional nginx directives, if it is present:
CONFIG_TEXT: 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.
Navigate to Domains > example.com > File Manager
web.configfile and add the following content right below the <system.webServer> declaration:
CONFIG_TEXT: <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.