Forum Discussion
Andrew_Husking
Sep 03, 2013Cirrus
iRule/http profile to change server side host header.
We are using the F5's as a central portal that can be presented anywhere on the network.
What we want to be able to do is go http://portal.company.com/application and have /application go to web...
Andrew_Husking
Sep 04, 2013Cirrus
I found my issue, it was that the server was sending a 301 redirect to the client to force all clients to use that host header.
I used the following iRule to fix it up (from here)
when HTTP_RESPONSE {
do replace on Location header if we get one (e.g. http redirections) - not covered by stream profile
if { [HTTP::header exists Location] } {
regsub "remotedomain.com" [HTTP::header Location ] "localdomain.com" newlocation
HTTP::header replace Location $newlocation
}
}
Thanks for all the help guys 🙂
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects