Forum Discussion
DannyF_69324
Nimbostratus
Aug 18, 2011iRule to display remote content through fake URI
Hey Guys,
I know there is an iRule like this already out there, but I can't seem to find it. Anyway hopefully one of you guys can help me out.
I'm going to be creating several reseller site...
The_Bhattman
Nimbostratus
Aug 19, 2011To expand on Ed's description
One way you could do this is to create pool pointing to the IP address for https://helpsite/help. In my example let's called it pool_helpsite.
Once that is created you would use the following irule
when HTTP_REQUEST {
switch -glob [string to lower [HTTP::uri]
"/help"-
"/help/" {
HTTP::header replace Location "https://helpsite.com/help"
Pool pool_helpsite
snat automap
}
}
}
The snat command basically ensures asynchronise routes to devices in a pool where they are not the gateway.
I hope this helps
Bhattman
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