1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00
samba-mirror/swat/index.esp
Stefan Metzmacher ccc4d51927 r7070: fix redirection when the client
doesn't send a 'Host' header

metze
2007-10-10 13:17:12 -05:00

21 lines
439 B
Plaintext

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