Forum Discussion

Bin_Chen_8638's avatar
Bin_Chen_8638
Icon for Nimbostratus rankNimbostratus
Nov 10, 2008

Help on URL Re-write

Hello, I am completely new to this forum, so pardon me if I ask this question again.

 

 

BACKGROUP

 

 

Our system consists of the following

 

 

gateway_host: SSL

 

Portal_host: Portal server

 

Blg_host: business logic server

 

 

We access all business logic via Portal, which handles the reqeust and then forward the request to Blg_host. After user login, this will be users portal page:

 

 

https://gateway_host/http://portal_host/portal/dt

 

 

Now, if end user click on any links on his portal page, a page with URL in the following format returned to a separate window

 

 

http://blg_host/ebuisiness.aspx?someID=000000000

 

 

Out gateway re-write this URL to the following and return to end user:

 

 

http://gateway_host/http://blg_host/ebuisiness.aspx?someID=000000000

 

 

QUESTIONS

 

 

If my F5 is named f5_host, how can I simplify my system so that end users only know about f5_host? In the above example, the user would see the response as:

 

https://f5_host/ebuisiness.aspx?someID=000000000

 

and never see blg_host in the URL?

 

 

Thank you so much for answering my question. Please provide example of code if possible.

 

  • Our intention is to replace the gateway_host with F5 so we have one less element in the network. Thanks.
  • There are several ways I can think of.

     

     

    1) One is using the stream profile which allows you to rewrite on the portal page as viewed to the client.

     

     

    The following is a link that describes using the stream profile

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=101

     

     

    2) use HTTP::redirect command within an iRule

     

    The following link is an example of how to use the Syntax

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__redirect.html

     

     

     

    I hope this helps

     

    CB