Forum Discussion

Anthony_Gerace_'s avatar
Anthony_Gerace_
Historic F5 Account
Jun 14, 2005

proxy feature - rewriting of redirects

Hello,

 

I'm attempting to pull the proxy configuration and am unclear what the method get_rewrite_redirects_mask does and what value is/means.

 

 

GUI Rewrite Redirects value mask value from method

 

choose 0

 

matching 5

 

all 6

 

 

 

is this correct, if so what happened to 1-4?

 

 

thanks.

 

 

Anthony

 

  • Loc_Pham_101863's avatar
    Loc_Pham_101863
    Historic F5 Account
    Here's what the SDK documentation says (under API Reference -> ITCM -> ITCMLocalLB -> Proxy -> Constants:

     

     

    A list of constants to be used as bitmask when creating a proxy. This bitmask indicates how rewriting of redirects should work. Used in rewrite_redirects_mask of create_ex_2 and create_ex_3.

     

     

    Enable the rewriting of HTTP 301, 302, 303, 305, or 307 redirects' Location field to "Location: https://...". When matching is specified, only a redirect with a URI in the Location field matching the URI requested by the client will be rewritten. When all is specified, redirects will be rewritten whether or not the URIs match. The port number specified in the redirect will also be rewritten when it does not match the port of the proxy.

     

     

    PROXY_REWRITE_REDIRECT_DISABLED = 0

     

    PROXY_REWRITE_REDIRECT_ENABLE_ALL = 6

     

    PROXY_REWRITE_REDIRECT_ENABLE_MATCHING 5

     

     

    Values 1-4 are reserved and are not exposed nor supported.

     

    Thanks,

     

    Loc