Skip to main content
mricardez
Staff
Staff
October 6, 2016

Technical Tip: FortiADC SLB L7 Content Routing

  • October 6, 2016
  • 0 replies
  • 5793 views
Description This article describes how to control sending HTTP traffic to a specific backend server based on:
  • HTTP Host.
  • HTTP Referer.
  • HTTP Request URL.
  • SNI.
  • Source IP address.

 

For example: Requests for HTTP Request URL in the /mail path should go to the mail server 10.10.10.10 and requests for traffic in the /finance path should go to the finance server 10.10.10.11.
Scope FortiADC.
Solution
  1. Go to Server Load Balance -> Real Server Pool.
  2. Create 2 real server pools, one for each backend server:
    1. Mail real server pool:
                                       
      mail server pool.PNG
    2. Finance real server pool:
                                                                    
      finance server pool.PNG                                                                                         
  3. Go to Server Load Balance -> Virtual Server.
  4. Select the Content Routing tab.
  5. Create an entry for each traffic criterion and specify the real server pool to be used:
    1. Mail content route:
                                                          
      mail content route.PNG                                                                             
    2. Finance content route:
                                                              
      finance content route.PNG                                                                          
  6. When configuring the virtual server at Server Load Balance -> Virtual Server, enable content routing and choose the 2 content routes:
                                                                                
    Virtual server.PNG                                                                                    
  7. Traffic will be sent to the intended backend server based on the URL:

                                                                                        
test results.PNG
See the FortiADC administration guide for more information.