Module ngx_stream_return_module

ngx_stream_return_module模块(1.11.2)允许将指定的值发送到客户端,然后关闭连接。

Example Configuration

server {
    listen 12345;
    return $time_iso8601;
}

Directives

Syntax:return value;
Default:
Context:server

指定要发送到客户端的value。该值可以包含文本,变量及其组合。