Forum Discussion
MeAndMyBIGIP_60
Nimbostratus
Jun 21, 2010HTTP::URI redirect to another Pool
Trying to use the sample code here (http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__uri.html) to do something that should be very simple: when HTTP_REQUEST {
if { [HTTP::uri] ends...
MeAndMyBIGIP_60
Nimbostratus
Jun 22, 2010Well There's yer problem!
I wasn't aware that iRules are case-sensitive...
I took Michael's advice of using 2 rules to make this happen:
On the HTTP virtual server:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}And on the HTTPS virtual server:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/Content")} {
pool Content_Pool
}
}However, I was still getting 404 errors in the browser when trying to hit https://www.website.com/content
On a fluke, I typed in https://www.website.com/Contentand everything worked as expected.
Thanks everyone for your help.
New issue though... I noticed while troubleshooting that the Client-IP that shows up in the IIS logs of any of the nodes (pool 1 or 2), is the IP of the LTM, not that of my actual desktop client.
Is there somewhere I need to tweak in the LTM config to pass along the original/real Client-IP rather than that of the device?
thanks!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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