How to allow HTTPS and configure certificates with a domain that has Hosting type set as Forwarding?

 

 

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

 

  1. Log in to Plesk GUI

  2. Change the Hosting type of the domain to Website hosting in Domains > example.com > Web Hosting Access

  3. Navigate to Domains > example.com > Apache & nginx Settings

  4. 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.


    OR

    Add 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

  1. Log in to Plesk GUI

  2. Navigate to Domains > example.com > File Manager

  3. 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.