天天看点

LNMP_访问 www.abc.com 请求到 www.abc.com/abc/

在nginx配置文件中加入

   if ($document_uri !~ 'jzq')

    {

            rewrite ^/(.*)$ http://www.jzq.pub/abc/$1 permanent;

    }

<a href="http://s1.51cto.com/wyfs02/M02/85/35/wKioL1ecpenRnPx6AACXuFidnKg454.png" target="_blank"></a>

Mkdir /data/www/abc

本文转自 15816815732 51CTO博客,原文链接:http://blog.51cto.com/68686789/1832178

继续阅读