$document_uri  表示访问的url
现在我的需求是,访问 www.abc.com  请求到 www.abc.com/abc/
nginx配置文件中加入

1   if ($document_uri !~ 'abc')

2    {

3            rewrite ^/(.*)$ http://www.abc.com/abc/$1 permanent;

4    }

复制代码