1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
samba-mirror/swat/index.esp
Andrew Tridgell 590f56d564 r7018: take advantage of the server[TLS_SUPPORT] variable to auto-redirect the home
page of swat to https:// if TLS is initialised OK
(This used to be commit 519bdcac96)
2007-10-10 13:17:07 -05:00

17 lines
298 B
Plaintext

<HTML>
<TITLE>
Samba4 ESP test
</TITLE>
<BODY>
redirecting you to the test pages ...
<%
if (server['SERVER_PROTOCOL'] == "http" &&
server['TLS_SUPPORT'] == "True") {
redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
} else {
redirect("esptest/index.esp");
}
%>
</BODY>
</HTML>