Forum Discussion
Ravi_Rajan_7549
Nimbostratus
May 03, 2006Redirect based on virtual directory name in IIS
Hi,
I am new to irules and need this help.
VIP: 192.168.100.100
Webpool1 - 4 Nodes, each containing ideal set of web applications.
Now apps are like http://192.168.1...
Ravi_Rajan_7549
Nimbostratus
May 09, 2006Hi,
Thanks !! I tried the below code and it worked !!
when HTTP_REQUEST {
if {[HTTP::host] ne "192.168.100.100"} {
HTTP::uri /[HTTP::host]
HTTP::header replace HOST "192.168.100.100"}
}
Now, I have some room for enhancement here. If the hostname is different from the actual virtual directory... For eg. user will type http://application and the redirection should happen to http://192.168.100.100/app1
I think we need to use arrays which map the URL name with the actual application name. Need views on this.
TIA,
Regards,
Ravi
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
