Forum Discussion
Ip to add path to standard redirect rule
So just to be clear:
http://ip address/arsys/shared/login.jsp
- "http://" is the protocol
- "ip address" is the host
- "/arsys/shared/login.jsp" is the URI
If you look at this from a command line cURL instance you might see something like this:
curl -v http://remedyqa.genre.com/arsys/shared/login.jsp
GET /arsys/shared/login.jsp HTTP/1.1
Host: remedyqa.genre.com
User-Agent: curl...
Accept: */*
You can see here that the host name (or in your case the IP address of the pool) doesn't show up in the URL of the request, but simply as a Host header. When you perform load balancing, the destination address is automatically changed to the IP address of the selected pool member. If you then need the Host header to reflect this chosen IP address, then you might use an iRule like this:
when HTTP_REQUEST_RELEASE {
HTTP::header replace Host [LB::server addr]
}
Technically speaking, in the absence of any iRule, there's nothing in the layer 7 HTTP request or response that's actually "rewritten". LTM changes the destination address as it passes through the box, and optionally the source if using SNAT, but none of the HTTP data is altered.
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