Forum Discussion
navgup_66025
Nimbostratus
Aug 05, 2013irule and httpclass profile - what takes precedence?
In a VIP, i have added an irule-redir1 and httpclass-redir1 profile. Which one take precedence?
irule-redir1 has this:
when HTTP_REQUEST {
if { [HTTP::header exists "Authorization"] }...
nitass
Employee
Aug 05, 2013httpclass matching happens after HTTP_REQUEST.
i would like to rewrite the URI with httpclass from https://xyz.com/test99 to https://xyz.com/test/index.aspe.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 profile myhttpclass list
profile httpclass myhttpclass {
defaults from httpclass
pool none
redirect none
url rewrite "/test/index.asp"
paths "/test99"
}
New TCP connection 1: 172.28.20.17(51118) <-> 172.28.19.252(80)
1375757739.1186 (0.0011) C>S
---------------------------------------------------------------
GET /test99 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
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(51118) <-> 200.200.200.101(80)
1375757739.1215 (0.0010) C>S
---------------------------------------------------------------
GET /test/index.asp 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
Host: 172.28.19.252
Accept: */*
---------------------------------------------------------------
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