Forum Discussion
THASIN
Nimbostratus
Aug 17, 2010Change HOST and append port
Hi
Scenario
Two VIP defined, HTTP_VS and HTTPS_VS, Nodes are listening on 9001. HTTP_VS is working fine. But HTTPS_VS is not working. Keep on asking username and password.
1.SNAT auto map enabled
2.CL...
You can use an iRule to insert the server IP and port as the Host header value:
when HTTP_REQUEST_SEND {
Need to force the host header replacement and HTTP:: commands into the clientside context
as the HTTP_REQUEST_SEND event is in the serverside context
clientside {
Replace the HTTP host header with the selected server IP and port
HTTP::header replace Host "[LB::server addr]:[LB::server port]"
}
}
Aaron
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