当匹配到地址http://xxx/sites/app/avatar/0F0993200F910338F0EE638EFDFA1779要请求http://xxx/sites/app/index.php?m=user&c=index&a=avatar&user_id=0F0993200F910338F0EE638EFDFA1779下面的写法好像不行location /sites/app/avatar/ {
rewrite "^/sites/app/avatar/$" $host/sites/app/index.php?m=user&c=index&a=avatar&user_id=$1;
}
1 回答
慕沐林林
TA贡献2016条经验 获得超9个赞
location /sites/app/avatar/ { rewrite /sites/app/avatar/(.*) /sites/app/index.php?m=user&c=index&a=avatar&user_id=$1 last; }
- 1 回答
- 0 关注
- 183 浏览
添加回答
举报
0/150
提交
取消