How to direct traffic to different folders based on incoming subdomain?
Hi,
I am stumped on writing an iRule to take in the URL coming on a shared VIP (DNS entry set for different sub domains to go to the same VIP) and direct to the proper folder in the IIS pool based on the incoming sub domain. Any help would be greatly appreciated. I am fairly new at this and I am thinking this is a fairly easy iRule to write.
Example:
https://one.mydomain.com/ maps to http://[HTTP:host]/appone
https://two.mydomain.com/ maps to http://[HTTP:host]/apptwo
where one.mydomain.com and two.mydomain.com have a DNS entry for each pointing to a shared VIP and web pool.
Normally, I would farm these out to different pools, but due to some development related issues, that isn't an option at this time.
Again, any help is greatly appreciated.
Thanks.
J