Annotation of embedaddon/libpdel/http/test/vhost.tmpl, revision 1.1
1.1 ! misho 1: <html>
! 2: <!-- $Id: vhost.tmpl,v 1.1 2002/08/08 20:29:54 archie Exp $ -->
! 3: <head>
! 4: <title>PDEL HTTP server virtual host demo</title>
! 5: </head>
! 6: <body bgcolor="#ffffff">
! 7:
! 8: <h3>PDEL Virtual Hosting</h3>
! 9:
! 10: <p>
! 11: This servlet is registered to handle the ``default'' virtual host,
! 12: i.e., requests that don't match the virtual host specified on the
! 13: command line, which is <b>@htmlencode(@vhost())</b>.
! 14:
! 15: <p>
! 16: @if(@equal(@get_header("Host"), ""))
! 17: Your browser sent no Host: header. It must be really old.
! 18: @else
! 19: Your browser sent this Host: header:
! 20:
! 21: <blockquote>
! 22: <b>Host: @htmlencode(@get_header("Host"))</b>
! 23: </blockquote>
! 24:
! 25: @endif
! 26:
! 27: @set("scheme", "http")
! 28: @if(@get_ssl())
! 29: @set("ssl", "s")
! 30: @endif()
! 31: @if(@or(
! 32: @and(@not(@get_ssl()), @not(@equal(@get_port(), "80"))),
! 33: @and(@get_ssl(), @not(@equal(@get_port(), "443")))))
! 34: @set("port", @cat(":", @get_port()))
! 35: @endif()
! 36:
! 37: @set("url", @cat(@get("scheme"), "://", @vhost(), @get("port"), "/"))
! 38:
! 39: <p>
! 40: To get to the virtual host <b>@htmlencode(@vhost())</b>, click on this link:
! 41:
! 42: <blockquote>
! 43: <b><a href="@get("url")">@htmlencode(@get("url"))</a></b>
! 44: </blockquote>
! 45:
! 46: </body>
! 47: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>