Forum Discussion
Antony2015
Altostratus
Mar 05, 2016Need help on rewrite iRule
Dear Friends,
I need a help on a rewrite iRule. The condition as follows...
x.y.com/EBC rewrite to x.y.com/ebc
x.y.com rewrite to x.y.com/ebc
I would appreciate if anyone can shed...
nitass
Employee
Mar 05, 2016e.g.
configuration
[root@ve11c:Active:In Sync] config tmsh list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 8
}
[root@ve11c:Active:In Sync] config tmsh list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
[root@ve11c:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
switch [HTTP::uri] {
"/" -
"/EBC" {
HTTP::uri "/ebc"
}
}
}
}
test1
[root@ve11c:Active:In Sync] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.24.1(39714) <-> 172.28.24.10(80)
1457237630.7187 (0.0016) C>S
---------------------------------------------------------------
GET /EBC HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Accept: */*
Host: x.y.com
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(39714) <-> 200.200.200.101(80)
1457237630.7230 (0.0041) C>S
---------------------------------------------------------------
GET /ebc HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Accept: */*
Host: x.y.com
---------------------------------------------------------------
test2
[root@ve11c:Active:In Sync] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.24.1(39715) <-> 172.28.24.10(80)
1457237660.4237 (0.0026) C>S
---------------------------------------------------------------
GET / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Accept: */*
Host: x.y.com
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(39715) <-> 200.200.200.101(80)
1457237660.4253 (0.0014) C>S
---------------------------------------------------------------
GET /ebc HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Accept: */*
Host: x.y.com
---------------------------------------------------------------
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