Netflix / zuul

Zuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more.
Apache License 2.0
13.43k stars 2.37k forks source link

Netflix zuul redirect #176

Open guymalachi opened 8 years ago

guymalachi commented 8 years ago

Hi,

I'm using zuul proxy server as a reverse proxy. I send http request that going through zuul server and when i get response with status code 3++ (redirect), the browser doing redirect and shows me the url of the real server. How can i solve this problem ?

Thanks a lot

NiteshKant commented 8 years ago

You will have to write a filter for rewriting redirect location for the response that contains absolute URIs.

guymalachi commented 8 years ago

Thanks... I get response with location header to the redirect server. I wrote post filter that add header with my new location value and the browser returns: Duplicate headers received from server ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION

How can i delete the origin location from header and insert my new one ?

Thanks

corlaez commented 7 years ago

I want to use a reverse proxy only with Zuul (no spring cloud) and i cannot write my redirect rule, could you provide a simple example?

michaelcizmar commented 4 years ago

The location header is just like any other header. Take a look at 326