Redirect http to https: Difference between revisions

(removing spam)
No edit summary
Line 1: Line 1:
Modify the file: /opt/zimbra/tomcat/webapps/zimbra/public/Login.jsp<br>
''N.B. If you just want to force authentication to occur over https, use [[zmtlsctl]].''
so that you change all occurrences of:<br>
<br>
initMode=" + currentProto<br>
to<br>
'''initMode=https"'''<br>
<br>
Only 3-5 lines will need to be changed in all. Below is an example of 3 lines (112, 113, 123) you will need to change<br>
----
org line  112> qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" +<br>
org line  113> currentProto;<br>
new line 112> qs = emptyQs? "?initMode=https": qs + "&initMode=https";<br>
new line 113>


org line 123> qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" + currentProto;<br>
==Edit Login.jps==
new line 123> qs = emptyQs? "?initMode=https": qs + "&initMode=https";<br>
 
----
In the file '''/opt/zimbra/tomcat/webapps/zimbra/public/Login.jsp''', comment out this statement:
 
  qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" +
currentProto;
 
So that it looks like this:
 
//qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" +
//currentProto;
 
 
==Set mixed mode==
 
su - zimbra
zmtlsctl mixed
tomcat restart

Revision as of 00:05, 21 January 2007

N.B. If you just want to force authentication to occur over https, use zmtlsctl.

Edit Login.jps

In the file /opt/zimbra/tomcat/webapps/zimbra/public/Login.jsp, comment out this statement:

qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" +
currentProto;

So that it looks like this:

//qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" +
//currentProto;


Set mixed mode

su - zimbra
zmtlsctl mixed
tomcat restart
Jump to: navigation, search