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

location /nexus/ {
proxy_pass http://172.21.0.32:8081/;
proxy_set_header Host h o s t : host:host:server_port;
}
location /static/ {
proxy_pass http://172.21.0.32:8081/static/;
proxy_set_header Host h o s t : host:host:server_port;
}

location /service/ {
  proxy_pass       http://172.21.0.32:8081/service/;
  proxy_set_header Host $host:$server_port;
}

版权声明:本文为weixin_42135190原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。