Check out these settings:
https://trafficserver.readthedocs.org/en/latest/admin-guide/files/records.config.en.html#http-redirection
proxy.config.http.redirection_enabled
proxy.config.http.number_of_redirections
They will enable ATS to follow the redirection instead of returning 302 to user 
agent.
You may still need proxy.config.url_remap.pristine_host_hdr depending on what 
Host header the origin expects.
David

      From: Pedro Miguel Marques <pedro.m.marq...@nos.pt>
 To: "dev@trafficserver.apache.org" <dev@trafficserver.apache.org> 
 Sent: Friday, March 11, 2016 3:00 AM
 Subject: help with origin redirect configuration
   
Hi

I'm trying to configure a reverse proxy but when my origin server returns a 302 
redirect the end user receives the redirect url.
Since the connection between ATS and my origin is private the end user can't 
reach the origin servers.

I've configured proxy.config.url_remap.pristine_host_hdr=INT1 but even so I'm 
not able to remap the url received from the origin to the url requested by the 
client.

Any idea on how to configure this?

Thanks in advance

Pedro Marques



   

Reply via email to