Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
AEK
SuperUser
SuperUser

URL-based routing on FortiWeb

Hi FortiWeb admins

FortiWeb 7.2.x.

What is the best method to achieve URL-based routing on FortiWeb in reverse proxy mode, when using a policy with HTTP Content Routing.

E.g.:

The method I know is to use HTTP Content Routing to route the traffic, then to use Rewrite policy to remove the URL /app1 or /app2. But I find this method complicated and I feel there should be a way to do it on FWB with less complexity.

Any idea about the best way to do it?

AEK
AEK
4 REPLIES 4
AEH
New Contributor III

Dear @AEK ,

I think using Content Routing with HTTP URL as the matching criteria instead of the HTTP Host :

  1. App1 : you link its CR with server pool for app1, then you specify the matching criteria : URL , then enter /app1 (if match prefix) , or app1 if you use contains.
  2. App2 : you link its CR with server pool for app2, then you specify the matching criteria : URL , then enter /app2, (if match prefix) , or app2 if you use contains.

Best regards.

AEH.
AEH.
AEK

Dear AEH

That's exactly what I did. However as I mentioned if I use this method I'll need to use a URL rewrite rule, in order to remove the /app1 and /app2 from the URL. This is because actually my back-end server doesn't have such path.

So I wonder if there is a cleaner way to do it, instead of combining HTTP Content Routing with URL Rewrite Rule.

AEK
AEK
AEH
New Contributor III

Dear AEK,

 

I now fully understand your requirement. However, I do not see any alternative 'cleaner' method other than the one you mentioned (URL rewriting). a lot of other methods require changes on client side or on the backend which i think isn't preferred in your case.

 

Best regards.

AEH.
AEH.
AEK

Thanks AEH for your feedback.

AEK
AEK
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors