Forum Discussion
302 response Location header issue
Hello guys I am new here and to F5 devices . I had to set up Vip with service port 4712 and same for pool 4712 ( profile http and ssl profile is set for client ) rest is left by default .
And when i want to test my page :
F5 URL:
Back end (destination) URL:
---Back end http response: HTTP/1.1 302 Found Location:
---F5 response to browser HTTP/1.1 302 Found Location:
F5 returns in response “Location” header the same that has been returned by back end
But when i set apache reverse proxy
i got :
Apache proxy response to browser :
Back end http response: HTTP/1.1 302 Found Location:
Apache proxy response to browser HTTP/1.1 302 Found Location:
3 Replies
- Kevin_Stewart
Employee
So just to clarify, you're getting http:// in 302 redirects to the client? Or is the entire URL incorrect?
- Stanislas_Piro2
Cumulonimbus
Hi,
F5 never change server response if you do not create a configuration to do that.
so F5 does not "return Location header" but let it unchanged.
If you want to replace location header, you must create a irule for that.
when HTTP_RESPONSE { Check if server response is a redirect if { [HTTP::header is_redirect]} { Do the update, replacing http:// with https:// HTTP::header replace Location \ [string map -nocase "http:// https://" [HTTP::header value Location]] } } - slesh_219299
Cirrus
Hello all Thanks for fast replay . I fix it with simple rewrite ... :( But i will keep in mind Stanislas option .
thank you guys .
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com