nginx语法总结
1、记录location中参数变量的意思
#这个名称是自己起的,在其它的nginx配置文件中有其对应。例如:
location ~ /basic-api(.*) {
set $name portal_cluster;
proxy_set_header Host $http_host;
proxy_pass http://$name/portal$1$is_args$args;
}
其中,
~是区分大小写匹配;
$name对应portal_cluster对应localhost:8880;
$1









