#匹配所有的txt|xml
location ~^/.*.(txt|xml)$ {
# 根目录所有的txt 文件请求 转发到 http://yourdomain.com/aa/bb?file=$1 位置
rewrite ^/(.).(txt|xml) /aa/bb?file=$1 break;
proxy_pass http://yourdomain.com;
}
2
赏
版权所有 © 2020 dulizao | 鄂ICP备20010220号-1
Theme Memory By Shawn With | All Rights Reserved
(●'◡'●)ノ本博客已萌萌哒运行了
评论
还没有任何评论,你来说两句吧!