Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 这是什么意思?<;id>;在nginx.conf';什么地方?_Postgresql_Nginx_Openresty - Fatal编程技术网

Postgresql 这是什么意思?<;id>;在nginx.conf';什么地方?

Postgresql 这是什么意思?<;id>;在nginx.conf';什么地方?,postgresql,nginx,openresty,Postgresql,Nginx,Openresty,是吗?表示ngx_postgres可以将其作为变量foo访问 我只需要确认一下。 这是纯ngx_postgres功能还是nginx单机版也可以使用?这是nginx的标准功能: 例如: 使用此位置: location ~ /numbers/(?<num>\d+) { # I captured one ore more digits into the variable $num ... } location~/numbers/(?\d+){ #我在变量$num中捕获了

是吗?表示ngx_postgres可以将其作为变量foo访问

我只需要确认一下。

这是纯ngx_postgres功能还是nginx单机版也可以使用?

这是nginx的标准功能:

例如:

使用此位置:

location ~ /numbers/(?<num>\d+) {
 # I captured one ore more digits into the variable $num    
   ...
}
location~/numbers/(?\d+){
#我在变量$num中捕获了一个或多个数字
...
}
如果请求为/numbers/100

变量$num(值为100)将在您所在的位置可用