Forum Discussion
ERLomboy_27803
Feb 08, 2014Nimbostratus
iRule rewrite | URL hiding
Hi Guys,
Have a requirement and I'll try to provide as much details as possible to help understand.
Internet users views web page, and posts web form to: htps://www.mysite.com/help/site1/...
nitass
Feb 08, 2014Employee
e.g.
1st f5
root@ve10(Active)(tmos) list ltm virtual firstvs
ltm virtual firstvs {
destination 172.28.24.9:https
ip-protocol tcp
mask 255.255.255.255
pool firstpool
profiles {
clientssl {
context clientside
}
http { }
tcp { }
}
rules {
firstrule
}
snat automap
}
root@ve10(Active)(tmos) list ltm pool firstpool
ltm pool firstpool {
members {
172.28.24.10:webcache { }
}
}
root@ve10(Active)(tmos) list ltm rule firstrule
ltm rule firstrule {
when HTTP_REQUEST {
if { [HTTP::host] eq "www.mysite.com" and [HTTP::uri] starts_with "/help/site1/" } {
HTTP::header replace Host "news.bizsite.com:8080"
HTTP::uri [string map {"/help/site1/" "/ehelp/microsites/"} [HTTP::uri]]
}
}
}
2nd f5
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual secondvs
ltm virtual secondvs {
destination 172.28.24.10:8080
ip-protocol tcp
mask 255.255.255.255
pool secondpool
profiles {
tcp { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 5
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool secondpool
ltm pool secondpool {
members {
200.200.200.101:8080 {
address 200.200.200.101
}
}
}
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