nginx根据url指定root目录
if ($request_uri ~* "/(v\d+)/.*" ) {
set $version $1;
}
root /home/code/php/potato/$version/food/public;
if ($request_uri ~* "/(v\d+)/.*" ) {
set $version $1;
}
root /home/code/php/potato/$version/food/public;
暂无评论。
评论功能维护中,当前仅展示历史评论。