Forum Discussion

Gus_Thompson_11's avatar
Gus_Thompson_11
Icon for Nimbostratus rankNimbostratus
Oct 29, 2007

HTTP Redirect - (302)

Greetings,

 

 

Based on the following entry I read:

 

http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=17805&view=topic

 

 

Is it possible to use something similar to remove our redirects on Apache and let the Big-IP handle them?

 

 

For example, assume I have the following VIP 172.26.30.100 and I have the following Domains pointed to that IP Address:

 

www.abc.com

 

www.abcd.com

 

www.abcde.com

 

 

Can the Big-IP redirect abcd.com and abcde.com to the IP and show it as www.abc.com?

 

 

Currently the 302 redirects are done on the web servers, but if the Big-IP could do that for us, it would save us a lot of work on the Apache side, especially since we usually have over 90 bogus domains for each real domain we own.

 

 

Just wondering, and thanks,

 

Gus
  • Gus,

     

     

    You should be able to create a rule to the real domain if you so choose.

     

     

    class domains {

     

     

    www.abcd.com

     

    www.abcde.com

     

    }

     

     

    when HTTP_REQUEST {

     

     

    if { [getfield [HTTP::host] ":" 1] contains $::domains} {

     

    HTTP::redirect http://www.abc.com

     

    }

     

    }