随笔分类 -  nginx

摘要:nginx反向代理获取用户真实ip https://www.nginx.cn/4646.html upstream www.redis.com.cn { ip_hash; server serving-server1.com:80; server serving-server2.com:80; } 阅读全文
posted @ 2021-05-19 18:09 hiyang 阅读(117) 评论(0) 推荐(0)
摘要:日志分析 时间戳格式化 awk -F'\t' '{ts_high=$3/10000000;ts_low=$3%10000000;sub(/.*/,strftime("%Y-%m-%d %H:%M:%S",ts_high)"."ts_low,$3);sub(/.*/, $NF/10"us", $NF) 阅读全文
posted @ 2020-05-28 22:29 hiyang 阅读(370) 评论(0) 推荐(0)
摘要:"demo🚀" 安装 "参考🚀" 1. 配置 "autoindex.html ⏬" 在 nginx autoindex 指令下面添加 add_after_body /autoindex.html; 然后重启 nginx 即可 2. add_after_body 阅读全文
posted @ 2020-04-04 10:03 hiyang 阅读(2137) 评论(0) 推荐(0)