我该怎么做nginx重写..?

时间:2015-05-12 02:02:06

标签: nginx rewrite

我想使用nginx重写..

如果是cliend请求 http://localhost/v2/{anyalphabet}/subdir 那我想表示 /docs/index.html ...这是物理位置。

我试过这个

location /v2/ {
    rewrite /v2/*$ /docs/index.html;
}

这不可能吗?

0 个答案:

没有答案