Forum Discussion

cylinh_171509's avatar
cylinh_171509
Icon for Altocumulus rankAltocumulus
Sep 24, 2014
Solved

How can I allow file extention to URL

i would like to know the best way to allow file extention to the URL.

 

example:

 

myurl.myurl.com

 

Allowed URLs:

 

/rpc/* /OAB/* /ews/* /ecp/* /autodiscover/*

 

  • Just in case someone wants to know what my irule look like that i had to resolve

     

    when HTTP_REQUEST { switch -glob -- [string tolower [HTTP::uri]] { "/rpc/" - "/oab/" - "/ews/*" - "/ecp/" - "/autodiscover/" { pool my_pool } default { reject } } }

     

2 Replies

  • t-roy's avatar
    t-roy
    Icon for Nimbostratus rankNimbostratus

    Depending on the code version you are using, you could do this in a profile, or you could do it with an iRule.

     

    Good place to start if you use an iRule:

     

    https://devcentral.f5.com/questions/access-control-for-specific-url

     

  • Just in case someone wants to know what my irule look like that i had to resolve

     

    when HTTP_REQUEST { switch -glob -- [string tolower [HTTP::uri]] { "/rpc/" - "/oab/" - "/ews/*" - "/ecp/" - "/autodiscover/" { pool my_pool } default { reject } } }