r7070: fix redirection when the client
[sfrench/samba-autobuild/.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         if (headers['HOST']) {
11                 redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
12         } else {
13                 redirect("https://" + server['SERVER_NAME'] + ":" + server['SERVER_PORT'] + request['REQUEST_URI']);
14         }
15 } else {
16         redirect("esptest/index.esp");
17 }
18 %>
19 </BODY>
20 </HTML>