Redirect http to https: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'' | 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.jps== | ==Edit Login.jps== | ||
This prevents the server from redirecting back to http if the initial connection is http. | |||
In the file '''/opt/zimbra/tomcat/webapps/zimbra/public/Login.jsp''', comment out this statement: | In the file '''/opt/zimbra/tomcat/webapps/zimbra/public/Login.jsp''', comment out this statement: | ||
Line 8: | Line 10: | ||
currentProto; | currentProto; | ||
In other words, make it look like this: | |||
//qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" + | //qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" + | ||
//currentProto; | //currentProto; | ||
==Set mixed mode== | |||
This configures the server to accept both http and https connections. | |||
su - zimbra | su - zimbra | ||
zmtlsctl mixed | zmtlsctl mixed | ||
tomcat restart | tomcat restart |
Revision as of 00:14, 21 January 2007
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.jps
This prevents the server from redirecting back to http if the initial connection is http.
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