Nginx跳转,URL不变,网页内容变,这个也还是蛮有意思的

假如,当我们访问www.abc.com时,页面内容要跳转成为www.abc.com/a/b/c/1.html

 server {
        listen 80;
        server_name www.abc.com;
        location =/ {
                rewrite ^/$  /a/b/c/1.html break;
                proxy_set_header Host $host;
                proxy_pass http://tomcat;
        }
        }

这样就行了