In the following scenario on premises I have one application www.myapp.com running on 2 front ends behind load balancer.
If I build the same scenario in Azure ... 2 instances, behind load balancer ... is there a way you can make some redirection rules at the load balancer level ... so if user try to access www.myapp.com/search, the load balancer redirects the user to www.bing.com
or wherever else ?
Or how redirection can be set in windows azure so if user try to access a defined rule, than the user request is redirected to a custom page from load balancer level, so the request don't hit the application ?
IMHO, that's less of a load balaner issue then it is a URL redirct via htp headers.
Unfortunately, today there is no way to add custom rules to the Azure load balancers. But what you *might* be able to do is configure IIS within your hosted instances to attempt this behavior via a custom header of some type. But I've never attempted it
and don't have any real guidance I can provide on doing it.
Yep I know about the IIS, but I was just asking if you can apply rules to load balancer in Azure ... we (networking colleagues) kinda do this way in our on premise environment ... if a request to resource x arrives at load balancer and there is a rule (at
load balancer level) that says: for this resource x redirect to site Y or whatever, the load balancer will redirect the user/browser to Y instead of passing the request to our application/IIS ...
As Brent points out that we have no control over the load balancer.
In addition, each instance of the same role will behave exactly the same. If you want them to have different behaviors, please use multiple roles. For example, you can use a particular role to dispatch requests to other roles based on your rules.