Applicable to:
- Plesk for Windows
Question
How to create a permanent redirect for Horde webmail from HTTP to HTTPS on a Windows server?
Answer
Functionality to access webmail over HTTPS by default is implemented in the Plesk Obsidian: the Plesk mail server and webmail are now available via HTTPS by default, they are secured with the default SSL/TLS certificate that secures Plesk itself.
For Plesk 17.8, it is needed to configure HTTPS redirection manually. Implement this method for domains where it is required to use HTTPS connection to Horde webmail by default.
-
Connect to the server via RDP.
-
Go to Start > Windows Administrative Tools > Internet Information Services (IIS) Manager > Server_name > Sites > webmail(horde).
-
Press the Explore button in the Actions section:
-
Open the
web.config
file in any text editor and paste the following code right before</system.webServer>
(change theexample.com
to the correct one in the code below):CONFIG_TEXT: <rewrite>
<rules>
<rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" />
<add input="{HTTP_HOST}" pattern="(webmail)\.example\.com" />
</conditions>
<action type="Redirect" url="https://{C:0}/{R:0}" redirectType="Permanent"/>
</rule>
</rules>
</rewrite>
</system.webServer> -
Back to Internet Information Services (IIS) Manager, navigate to Sites > webmail(horde) site and press the Restart button.
Additional information
How to create a permanent redirect for MailEnable WebMail from HTTP to HTTPS?
Comments
0 comments
Please sign in to leave a comment.