使用nginx代理nexus,不是/根路径

    location /nexus/ {
      proxy_pass       http://192.168.0.218:8081/;
      proxy_set_header Host $host:$server_port;
    }
    location /static/ {
      proxy_pass       http://192.168.0.218:8081/static/;
      proxy_set_header Host $host:$server_port;
    }

    location /service/ {
      proxy_pass       http://192.168.0.218:8081/service/;
      proxy_set_header Host $host:$server_port;
    }
原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/15062106.html