4层nginx日志打印域名

37 阅读1分钟

4层nginx通过ip来路由请求,但是也可以在日志中打印域名。

log格式增加:'$ssl_preread_server_name'

image.png

upstream增加:ssl_preread on;

image.png