nginx Help
location ~* \.(gif|jpg|jpeg)$ {
//這里怎么拿到 括號(hào)里的值?
//比如
set $ext "gif";//得到括號(hào)里面是什么內(nèi)容
}
Well, ask and answer your own questions
location ~* \.(?<ext_name>gif|jpg|jpeg)$ {
//這里怎么拿到 括號(hào)里的值?
//比如
set $ext "$ext_name";//得到括號(hào)里面是什么內(nèi)容
}