ITeye博客

nginx根据url指定root目录

ww111 · 2016-03-02 13:58 · linux nginx · 操作系统 · Markdown

    if ($request_uri ~* "/(v\d+)/.*" ) {
        set $version $1;
    }

    root    /home/code/php/potato/$version/food/public;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。