使用正则表达式来配置 location 时报如下错误
nginx: [emerg] unknown directive "2}\w/$" in /usr/local/nginx/conf/nginx.conf:50
配置大代码块如下
location ~/\d{2}\w/$ {
root html;
index index.html index.htm;
}
我的问题是, 怎么才能在 location ~ 中使用正则表达式中的 { } 这种匹配限定符呢