Forum Discussion
Shawn_Salyers_8
Nimbostratus
Mar 29, 2010iRule Redirect and mask destination URL
Hello all, I am somewhat new to the F5 and have been doing a bit of searching and have come up with some similar scenarios which leads me to believe that what I am trying to accomplish is possible. What I am looking to do is a redirect from something like www.abc123.com to www.abc456.com/application/. However, I want the browser bar only to show the www.abc123.com + URI. Any help with this would be greatly appreciated.
--Shawn
15 Replies
- Shawn_Salyers_8
Nimbostratus
Wow, what an incredible response time! I will dig into this. Anything I should be looking out for in particular? - hoolio
Cirrostratus
The main one is to use v10 if you're on LTM v10.x and the original ProxyPass for v9. The instructions following the code are fairly complete.Enable to rewrite page content (try a setting of 1 first) (2 = attempt to rewrite host/path and just /path, 1 = attempt to rewrite host/path) set static::RewriteResponsePayload 0
Enable to debug ProxyPass translations via log messages in /var/log/ltm (2 = verbose, 1 = essential, 0 = none) set static:roxyPassDebug 0
- Shawn_Salyers_8
Nimbostratus
Ok, I'm making progress, but I cannot seem to get it to work. Here is what is in the logs: - hoolio
Cirrostratus
What do you have in the "config" datagroup? It looks like there isn't a match for your hostname and the / URI. - Shawn_Salyers_8
Nimbostratus
This is what I have for my entry in the DataGroup List: - hoolio
Cirrostratus
Was that the same config used when the log entry was seen? It seems like the request for / you've listed should have matched the datagroup. - Shawn_Salyers_8
Nimbostratus
Yes, same rule. - hoolio
Cirrostratus
The := syntax is supported in 10.1.0 for internal and external, file-based datagroups. In 10.0.x, it can only be used for external file datagroups. Which LTM version are you running? Do you have an external datagroup defined with that entry in it? - Shawn_Salyers_8
Nimbostratus
We are running 10.0.1. What format does the file need to be in? Permissions? Also, this will redirect to an external URL that is not on our network. Does this matter? - hoolio
Cirrostratus
For 10.0.x, you would need to create an external file based datagroup under /var/class or /config. I don't think you need any special permissions--probably just rw for root (chmod 644 /var/class/external.class.file would probably work fine).
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