title: Zuul Rewrites Host Name after Routing
body: <p>Whenever a request hits Zuul, I got a 302 redirect to the host of the actual service to be called. So the url gets rewritten by Zuul. I want to prevent this. The user should only see the hostname of Zuul.</p>
  
  <p>I have a Spring Cloud Zuul that I use as a routing server. It has the following configs:</p>
  
  <pre><code>zuul:
    ignoredServices: '*'
    routes:
      service1:
        path: /service1/**
        serviceId: service1
        stripPrefix: false
      service2:
        path: /service2/**
        serviceId: service2
        stripPrefix: false
      login:
        path: /login/**
        sensitiveHeaders:
        serviceId: login
        stripPrefix: false
  </code></pre>
  
  <p>And Zuul is using Eureka for the service discovering. Suppose <code>logingateway</code> is running on <code>localhost:8081</code> and Zuul on <code>localhost:8080</code>. If go to <code>localhost:8080/login</code>, I'll get a 302 first and then to <code>localhost:8081/login</code>. I don't want 302 redirect and I want the hostname to stay the same. I didn't find any related document on this issue. Thanks.</p>