I have been trying to find solution for this for days now,

My problem

zuul:
  routes:
    test:
      path: /test/**
      serviceId: test
      url: http://my.api.server.com
    test2:
      path: /test2/**
      serviceId: test2
      url: http://my.api.server.com // but through an external proxy

I could find this https://github.com/spring-cloud/spring-cloud-netflix/issues/2320 at the best. But that would requiring extending the default SimpleHostRoutingFilter with 2 different CloseableHttpClient and is too much code change, this is probably unavoidable in my setting. any suggestions pls?

Comment From: spencergibb

There is no way to do this automatically for particular routes without writing a custom filter.

Comment From: devansh-dalal

@spencergibb , I am willing to write a custom filter, which is better than extending SimpleHostRoutingFilter completely, Please do give me hints how this can be achieved?

Comment From: ryanjbaxter

I think it is going to be best to extend SimpleHostRoutingFilter in most cases to reuse as much code as possible.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: devansh-dalal

got that. Thanks, @ryanjbaxter for the response.