r7018: take advantage of the server[TLS_SUPPORT] variable to auto-redirect the home
[samba.git] / swat / index.esp
1 <HTML>
2 <TITLE>
3 Samba4 ESP test
4 </TITLE>
5 <BODY>
6 redirecting you to the test pages ...
7 <%
8 if (server['SERVER_PROTOCOL'] == "http" &&
9     server['TLS_SUPPORT'] == "True") {
10         redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
11 } else {
12         redirect("esptest/index.esp");
13 }
14 %>
15 </BODY>
16 </HTML>