随笔分类 - web
摘要:在 Nginx 中,keepalive_requests 指令用于控制与客户端和代理服务器之间 keep-alive 连接的请求次数。在 HTTP 配置中,它控制 Nginx 与客户端之间 keep-alive 连接的请求次数。在 upstream 配置中,它控制 Nginx 与上游服务器之间 ke
阅读全文
摘要:package main import ( "flag" "github.com/gin-gonic/gin" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/promethe
阅读全文
摘要:vhost和server对应 vhost的匹配逻辑 在请求nginx时,判断请求属于哪个vhost,主要是server块中的listen和server_name两个字段决定 listen listen字段定义server响应的ip和端口,如果没有明确配置listen字段,默认监听0.0.0.0:80
阅读全文
摘要:Introduction Nginx is one of the most popular web servers in the world. It can successfully handle high loads with many concurrent client connections,
阅读全文
摘要:前端发起这样的请求: http://192.168.0.2/test/aaa.txt proxy_pass可以分为以下12种情况 Scenario 1 ... location ^~ /test { ... proxy_pass http://127.0.0.1; } 代理后的实际URL为: htt
阅读全文
摘要:不同阶段的顺序 init > init_worker > set > rewrite > access > content > header > body > log 同一个阶段下 不同context执行优先级 location > server > http
阅读全文
摘要:简述 网络延迟用的最多的是基于icmp协议的ping,但是对于一些禁止ping的服务端将不起作用,这个时候如果我们想要测试网络延迟那么可以使用tcping工具;此工具的原理和他的名字一样是基于tcp协议的,通过tcp的三次握手实现; 安装 Centos: yum install tcptracero
阅读全文
摘要:1. 问题一 报错: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statemen
阅读全文

浙公网安备 33010602011771号