Forum Discussion
BlackCisco_1037
Nimbostratus
Aug 15, 2007Extend domain name that connects to Irule
Hi,
I am reading this forum frequently and got a lot of use full information from it and finally i can ask something.
I have wrote an irule and evrytime it is used it is redir...
BlackCisco_1037
Nimbostratus
Aug 22, 2007Helllo,
I should of explained the story/requirement a little more and still really really value your help - please. We currently have an Irule as below and we need to add one additional function. This function is that all requests made by the F5 Loadblancer that go to the web server using ony the following URL only:
www.blackcisco.com/images/1.jpg ( and not to www.blackcisco.com/index.php - which it seem to do by default!)
Current IRule: ( this rule determine what gif are set)
when HTTP_REQUEST {
set newUri /virtual/upcnl2a/stoppage/
set newUri1 /images/logo.jpg
set newUri2 /images/stop.gif
set newUri3 /images/flageng.gif
set newUri4 /css/style.css
log local0. "BlackCisco"
if { not ( [HTTP::uri] contains $newUri ) and not ( [HTTP::uri] contains $newUri1 ) and not ( [HTTP::uri] contains $newUri2 ) and not ( [HTTP::uri] contains $newUri3 ) and not ( [HTTP::uri] contains $newUri4 ) } {
HTTP::uri $newUri
}
elseif { [HTTP::uri] contains $newUri1 } {
HTTP::uri $newUri$newUri1
} elseif { [HTTP::uri] contains $newUri2 } {
HTTP::uri $newUri$newUri2
} elseif { [HTTP::uri] contains $newUri3 } {
HTTP::uri $newUri$newUri3
} elseif { [HTTP::uri] contains $newUri4 } {
HTTP::uri $newUri$newUri4
Please could you save my life, and paste how the new Irule fuction (directing the URL) would fit with the current rule - thanks
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
