Redirect http to https: Difference between revisions
(Adding 4.5 template) |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{4.5}} | {{Archive}}{{Article Infobox|{{admin}}|||{{ZCS 4.5}}}}NOTE: 5.0+ has a [[zmtlsctl]] redirect mode. | ||
This will allow initial connections over http, but '''always''' redirect them to https. If you just want to force authentication to occur over https, just use ''[[zmtlsctl]] mixed''. | This will allow initial connections over http, but '''always''' redirect them to https. If you just want to force authentication to occur over https, just use ''[[zmtlsctl]] mixed''. | ||
Line 26: | Line 26: | ||
''Note that this is an attempt at a workaround for the problem addressed in [http://bugzilla.zimbra.com/show_bug.cgi?id=7631 Bug 7631], which is scheduled to be fixed in ZCS 5.0. | ''Note that this is an attempt at a workaround for the problem addressed in [http://bugzilla.zimbra.com/show_bug.cgi?id=7631 Bug 7631], which is scheduled to be fixed in ZCS 5.0. | ||
{{Article Footer|ZCS 4.5|6/15/2006}} | |||
[[Category:Administration]] | |||
[[Category:ZCS 4.5]] |
Latest revision as of 17:23, 24 March 2015
Article Information |
---|
This article applies to the following ZCS versions. |
NOTE: 5.0+ has a zmtlsctl redirect mode.
This will allow initial connections over http, but always redirect them to https. If you just want to force authentication to occur over https, just use zmtlsctl mixed.
Edit Login.jsp
This prevents the server from redirecting back to http if the initial connection is http.
On each mailbox node, in the file /opt/zimbra/tomcat/webapps/zimbra/public/Login.jsp, comment out this statement:
qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" + currentProto;
In other words, make it look like this:
//qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" + //currentProto;
Set mixed mode
This configures the server to accept both http and https connections.
su - zimbra zmtlsctl mixed tomcat restart
Note that this is an attempt at a workaround for the problem addressed in Bug 7631, which is scheduled to be fixed in ZCS 5.0.