Forum Discussion

dave_bancroft_1's avatar
dave_bancroft_1
Icon for Nimbostratus rankNimbostratus
May 09, 2006

http redirect

Hi

 

 

This is possibly a simple question however if anyone could provide some help or a link to relevant documentation it would be appreciated. I have checked the askf5 site and appears I may need to use irules which i have no experience in to date.

 

 

I need to redirect enterprise on port 80 (see below) to an ip address on port 8000, however not sure how to include the directory to the app.

 

 

http://enterprise:80 to http://10.100.74.19:8000/OA_HTML/AppsLocalLogin.jsp

 

 

thanking anyone in advance.

 

 

dave
  • if (http_uri matches_regex "http://enterprise" or http_uri matches_regex "http://enterprise:8000") {

     

    redirect to "http://10.100.71.14:8000/OA_HTML/AppsLocalLogin.jsp"

     

    or "http://10.100.71.15:8000/OA_HTML/AppsLocalLogin.jsp }

     

    else {

     

    discard

     

    }

     

     

     

    this is my attempt and doesn't work ... I really need this to load balance across both of these URLS ... http://10.100.71.14:8000/OA_HTML/AppsLocalLogin.jsp & http://10.100.71.15:8000/OA_HTML/AppsLocalLogin.jsp