摘要: location语法: location [=|~|~*|^~] /uri/ { … } 记住以下即可: 完全匹配(=) 无正则普通匹配(^~)(^ 表示“非”,~ 表示“正则”,字符意思是:不要继续匹配正则) 正则表达式匹配(~或者~*) 普通匹配 rewrite语法: rewrite regex 阅读全文
posted @ 2019-12-11 18:00 鼠标的博客 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 参考官网:http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass 定义:用来设置被代理服务器的协议(http或https)和地址(域名或者IP地址加端口),还可以设置可选的URI 例:proxy_pass http:// 阅读全文
posted @ 2019-12-11 16:46 鼠标的博客 阅读(340) 评论(0) 推荐(0) 编辑