使用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;
    }
posted @ 2021-07-26 16:36  哈喽哈喽111111  阅读(585)  评论(0编辑  收藏  举报