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.100.100/app1, http://192.168.100.100/app2
I have requirement that the customer does not want to type http://servername/app1 instead he wants to type http://app1 to access app1.
We have around 50+ apps and all apps need to be accessed as http://appname.
TIA
Regards,
Ravi
- Ravi_Rajan_7549
Nimbostratus
Hi, - Ravi_Rajan_7549
Nimbostratus
Thanks, i will test this and let you know. - Ravi_Rajan_7549
Nimbostratus
Hi, - Colin_Walker_12Historic F5 AccountYou certainly can. You can insert log commands wherever you'd like in the rule to log information. Log commands look like:
log local0. "Info to log here. E.G. current host is [HTTP::host]"
- Ravi_Rajan_7549
Nimbostratus
Hi, - Al_Carandang_11
Nimbostratus
You could create a DataGroup called AppDir and then useHTTP::uri /[findclass [HTTP::host] $::AppDir " "] HTTP::header replace HOST "192.168.100.100"
application1 app1 application2 app2 application3 app3 ...
- Ravi_Rajan_7549
Nimbostratus
Thanks a bunch !! This works perfect. I am testing it and will come back if i have any queries.
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