将本地访问ip映射成域名

通过修改以下地址

 C:WINDOWSsystem32driversetchosts

加进你自己的如:

192.168.1.101  www.helloworld.com

配置nginx代理url

nginx/conf/nginx.conf

copy一份location  eg:

 location ^~/spbservice/{
     
   rewrite ^/spbservice/(.*)$ /$1 break;
  
      proxy_pass  http://localhost:7070;
        }

原文地址:https://www.cnblogs.com/xu-lei/p/6755468.html