Forum Discussion
RobertWebb_7911
Jan 22, 2015Nimbostratus
LTM Rewrite Profile for URI Translation
Anyone having success with this? I tried setting this up and cannot get it to work.
My setup is a LTM VS with an APM policy applied. I created the rewrite profile from the LTM section and setup ...
RobertWebb_7911
Jan 22, 2015Nimbostratus
Also to add,
My rewrite profile is setup with:
Request Settings: Rewrite Headers, Insert X-Forwarded-For Response Settings: Rewrite Headers
Of course a list of URI rules in the form of the example in my original post
No Set-Cookie Rules
- Michael_JenkinsJan 22, 2015CirrostratusNot sure why it wouldn't be working, but one thing to check is whether the response page is sending back absolute urls or relative urls in the page. I wonder if maybe it can't rewrite urls because it doesn't see what it's looking for.
- RobertWebb_7911Jan 22, 2015NimbostratusSo I just wanted to follow up. The rewrites are setup for external users to hit a specific URI in order to be able to send post data to a backend server. I have come to realize that they are send the URI in the format of /URI and not /URI/. This appears to be causing the Big-IP to not make the match. So now to find out how to test for and add the trailing / if it is not in the original request.
- RobertWebb_7911Jan 22, 2015NimbostratusAnother issue... In my original post I state that the rewritten URI is supposed to be /my/new/uri/is/this. However, now that I have figured out the / issue on the inbound URI, I am seeing the outbound URI written as /my/ only. Not /my/new/uri/is/this.
- Michael_JenkinsJan 22, 2015CirrostratusSo the incoming URL would be http://domain/URI and you want it to be http://domain/URI/? Is that correct? You could modify your iRule to look for [HTTP::uri] equals "/URI" and then set the uri: HTTP::uri "/URI/".
- RobertWebb_7911Jan 22, 2015NimbostratusFirst issue is that if the incoming URI does not end with a trailing /, such as /URI/, the profile will NOT match to anything in its list. So if I send with a URI of /test and the profile has /test/ (in which the trailing slash is required to save in the profile) it will not match. My incoming URI hass to be /test/.
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