摘要:
前言,我这里验证的nginx-v1.23.2单机环境下的nginx中的正则表达式、location路径匹配规则和优先级。 先准备好环境,基础配置是这样 nginx/conf/conf.d/host.conf : server { listen 8081; server_name 10.90.5.70 阅读全文
posted @ 2022-12-09 23:10
熊仔其人
阅读(11825)
评论(0)
推荐(2)
摘要:
nginx里面的路径定位关键词root、alias是有区别的: 设置请求资源的目录root / alias root:设置请求的根目录 | | | | | | | 语法 | root path; | | 默认值 | root html; | | 位置 | http、server、location | 阅读全文
posted @ 2022-12-09 20:49
熊仔其人
阅读(1699)
评论(0)
推荐(0)

浙公网安备 33010602011771号