nginx部署springboot

    upstream sysadmin_in {
      server 172.17.100.9:8046;
      server 172.17.100.10:8046;
    }
        location /sysadmin {
            proxy_http_version 1.1;
            proxy_set_header Connection "";
            proxy_pass  http://sysadmin_in;
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }

你可能感兴趣的:(nginx,linux)