Forum Discussion
Olivier_Minet_6
Jan 28, 2014Nimbostratus
Replace subdomain and remove path
Greetings,
I'm struggling with this :
I would like this :
http://www.mysite.org/customfiles/mydoc.htm
transformed into this:
http://customfiles.mysite.org/mydoc.htm
Of course, there are seve...
IheartF5_45022
Feb 04, 2014Nacreous
and logging;-
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/customfiles"} {
log local0. "Replacing [HTTP::uri] with [string replace [HTTP::path] 0 11 ""]"
HTTP::uri [string replace [HTTP::path] 0 11 ""]
log local0. "Replaced - \[HTTP::uri\] is [HTTP::uri]"
HTTP::header replace Host "customfiles.onprvp.fgov.be"
pool my_pool
}
}
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