?<id> 在 nginx.conf 的位置做什么?
What does ?<id> do in nginx.conf's location?
是吗?表示它可以作为变量 foo?
ngx_postgres 访问
我只是需要确认一下。
https://github.com/FRiCKLE/ngx_postgres#sample-configuration-5
这是纯粹的 ngx_postgres 功能还是 nginx 也可以独立使用?
那是 nginx 标准 regex named captures 特性:
例如:
在这个位置:
location ~ /numbers/(?<num>\d+) {
# I captured one ore more digits into the variable $num
...
}
如果请求是 /numbers/100
变量 $num(值为 100)在您的位置可用。
是吗?表示它可以作为变量 foo?
ngx_postgres 访问我只是需要确认一下。 https://github.com/FRiCKLE/ngx_postgres#sample-configuration-5
这是纯粹的 ngx_postgres 功能还是 nginx 也可以独立使用?
那是 nginx 标准 regex named captures 特性:
例如:
在这个位置:
location ~ /numbers/(?<num>\d+) {
# I captured one ore more digits into the variable $num
...
}
如果请求是 /numbers/100
变量 $num(值为 100)在您的位置可用。