Forum Discussion
krisdames
Cirrus
Feb 13, 2013To iRule or not to iRule?
Hi all,
Long time watcher, first time poster. My F5 is v11.2.1. I have read a ton of questions about reverse proxies and that's what I need to do, but it seems to me like I should not nee...
nitass
Employee
Feb 15, 2013You could also use a HTTP Class for thise.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.252:80
ip protocol 6
httpclass myhttpclass
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b profile myhttpclass list
profile httpclass myhttpclass {
defaults from httpclass
pool none
redirect none
url rewrite "[string map {/foo /FOO} [HTTP::uri]]"
paths "/foo/*"
}
test
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.18.204.232(14004) <-> 172.28.19.252(80)
1360976747.8596 (0.0020) C>S
---------------------------------------------------------------
GET /foo/something HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-SG
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 172.28.19.252
Connection: Keep-Alive
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(14004) <-> 200.200.200.101(80)
1360976747.8615 (0.0017) C>S
---------------------------------------------------------------
GET /FOO/something HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-SG
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 172.28.19.252
Connection: Keep-Alive
---------------------------------------------------------------
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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