Skip to main content
profeta
New Member
February 11, 2020
Question

Fortiweb Redirect based on URI from URL

  • February 11, 2020
  • 2 replies
  • 5080 views

Hi all,

 

I would like to redirect from a generic URL base on the URI of it to diferent ports on diferent ports as you can see on the image.

I try url redirect but is not working.

Should I create a policy without any virtual server?

    2 replies

    Yurisk
    SuperUser
    SuperUser
    February 11, 2020

    Redirecting/rewriting will not do the job as it works on content of the headers/body already.  You can set custom listening port of the physical server Server Objects -> Server Pool -> Edit Server Pool -> Edit Server Pool Rule -> Port <set to the custom port you want>. The tricky part is to separate those physical servers pool by the URL part of the domain.

     

    yurisk.info - all things Fortinet blog, no ads
    Yurisk
    SuperUser
    SuperUser
    February 22, 2020

    Here is the step by step instructions how to do it (if not for the original author then for the future reference).

    The forum software does not support PDFs, so I put it on the Internet: https://yurisk.info/assets/FortiWeb-Content-Routing.pdf  

     

    yurisk.info - all things Fortinet blog, no ads
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!