svn commit: samba r7018 - in branches/SAMBA_4_0/swat: .
tridge at samba.org
tridge at samba.org
Fri May 27 12:36:16 GMT 2005
Author: tridge
Date: 2005-05-27 12:36:16 +0000 (Fri, 27 May 2005)
New Revision: 7018
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7018
Log:
take advantage of the server[TLS_SUPPORT] variable to auto-redirect the home
page of swat to https:// if TLS is initialised OK
Modified:
branches/SAMBA_4_0/swat/index.esp
Changeset:
Modified: branches/SAMBA_4_0/swat/index.esp
===================================================================
--- branches/SAMBA_4_0/swat/index.esp 2005-05-27 12:28:59 UTC (rev 7017)
+++ branches/SAMBA_4_0/swat/index.esp 2005-05-27 12:36:16 UTC (rev 7018)
@@ -5,7 +5,12 @@
<BODY>
redirecting you to the test pages ...
<%
- redirect("esptest/index.esp");
+if (server['SERVER_PROTOCOL'] == "http" &&
+ server['TLS_SUPPORT'] == "True") {
+ redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
+} else {
+ redirect("esptest/index.esp");
+}
%>
</BODY>
</HTML>
More information about the samba-cvs
mailing list