Fork me on GitHub
摘要: 请求都用域名 test.com root http://nginx.org/en/docs/http/ngx_http_core_module.html#root 语法 Syntax: root path; Default: root html; Context: http, server, loc 阅读全文
posted @ 2021-08-31 23:27 自由早晚乱余生 阅读(3983) 评论(0) 推荐(0) 编辑
摘要: 本文是基于 location 的匹配末尾是否配置 / 和 proxy_pass 末尾是否配置 / ,进行测试,完全还原了整个测试过程。帮助了解具体的情况。 一、Nginx location 基本配置 1.1、Nginx 配置文件 upstream test1{ server 127.0.0.1:80 阅读全文
posted @ 2021-08-31 23:25 自由早晚乱余生 阅读(17611) 评论(2) 推荐(9) 编辑