Forum Discussion
dundovic_25174
Nimbostratus
Jan 23, 2012HTTP Class profile redirect
I understand this is iRule discussion forum and I can achieve this using iRule, but due to some specific customer requirements, they'd like to have it done using 'HTTP class' profile.
Follo...
George_Watkins_
Jan 23, 2012Historic F5 Account
Here is the config I used (output from tmsh):
test-ltm-ve-03(Active)(/Common)(tmos) list ltm profile httpclass redirect_server1_to_server2ltm profile httpclass redirect_server1_to_server2 {
app-service none
defaults-from httpclass
hosts { glob:Server1.domain1.com }
paths { glob:/Folder1 }
pool none
redirect http://Server2.domain2.com/Folder2/
}
Keep in mind that the matches are case sensitive, so if you are expecting different capitalization, you might want to use a regex (slower). Hope that helps,
-George
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
