Zimbra 8.6 Redirect HTTP to HTTPS

Posted: December 5, 2017 in Linux

Thanks to

https://wiki.zimbra.com/wiki/Provide_HTTP(s)_Integration_with_Apache

http://know.mailsbestfriend.com/how_to_change_the_web_access_port_for_zimbra-260852131.shtml

https://www.zimbra.com/docs/ne/6.0.8/administration_guide/ZimbraProxy.07.6.html

https://wiki.zimbra.com/wiki/CLI_zmtlsctl_to_set_Web_Server_Mode

Change Web Server Mode

login as zimbra

$ zmtlsctl redirect

clip_image002

$ zmcontrol restart

clip_image004

But, when I tried access http://mail.yourdomain.com still not redirect or This page can’t be displayed

clip_image006

This problem the Zimbra Mail Port used 8080, and Zimbra Mail Proxy Port 80. So, I tried to change Zimbra Mail Port from 8080 to 80 and Zimbra Mail Proxy Port from 80 to 81 and restart service Zimbra server

$ zmprov gs `zmhostname` | grep MailPort

$ zmprov gs `zmhostname` | grep MailProxyPort

clip_image008

$ zmprov ms server.com zimbraMailProxyPort 81

$ zmprov ms server.com zimbraMailPort 80

clip_image010

Restart Service Zimbra

$ zmcontrol restart

clip_image011

Try access on your web browser http://mail.yourdomain.com zimbra will be redirect to https://mail.yourdomain.com:8443

Note : Don’t forger to open port on your firewall 80,443,8443.

clip_image013

CMIIW, Thanks Smile

Leave a Reply

Your email address will not be published. Required fields are marked *