這是本文件的舊版!


Simple Web Server

  • Even though not set service group or real server, when slb received http request response a simple page and some system variable.

Requirement

  • Service Type: HTTP / HTTPS

Code

# Simple Web Server
when HTTP_REQUEST {
  HTTP::respond 200 content "
    <html>
      <head>
        <title>A10 SLB Site 1</title>
      </head>
      <body>
        This is SLB Site 1 http://[HTTP::host][HTTP::uri]
        <p>IP: local_addr: [IP::local_addr]</p>
        <p>IP: client_addr: [IP::client_addr]</p>
        <p>IP: remote_addr: [IP::remote_addr]</p>
        <p>IP: server_addr: [IP::server_addr]</p>
        <p>IP: protocol: [IP::protocol]</p>
      </body>
    </html>
  "
}
a10/slb/aflex/http/return-html.1398354152.txt.gz · 上一次變更: 2014/04/24 15:42 由 jal
上一頁 | 下一頁 | 回首頁 | RSS Feed | Facebook