Mike_Roe_60070
Feb 18, 2011Nimbostratus
URL and 301 Re-Write
Hi All, Im hoping someone can help me out. I have a need to have one site (which has SSO with APM) be known in the world as 8. In this instance the site my.company.com has an SSO profile that is tied to the domain name company.com but, by way of another virtual in front of it I need addresses look like “my.company1.com” and “my.company2.com”. So for the SSO to work I have to replace the host which I have been able to do like this:
when HTTP_REQUEST {
HTTP::header replace Host "my.company.com"
virtual my_jboss_sb_vs
}
I think I have this part working but, in the response I am getting 301’s and it is breaking the solution. Im guessing I can use HTTP::header is_redirect which I found in my searching but, im not sure how to get it done.
In a netshell this is needed because all of our apps run on 1 domain “company.com” but, our company is known by many names/domains. We need our customers to think they are on the name they are familiar with throughout their web session so If they come to http://my.company25.com/app1 they dont get a redirect to http://my.company.com/app1. But in actuality they are using the app at the address http://my.company.com/app1.
Thanks in advance