nginx/tengine配置

  location / {

        return 200 "[$time_local] $scheme server<$hostname> [$remote_user] in $remote_addr:$remote_port -> server_name:$server_name, host:$host, http_name:$http_name(RS:$server_addr:$server_port)\n\n";
}

输出结果:

# curl 10.12.24.21
[07/Aug/2018:14:43:59 +0800] http server [] in 10.12.52.254:37015 -> server_name:_, host:10.12.24.21, http_name:(RS:10.12.24.21:80)

你可能感兴趣的:(工具类)