Forum Discussion
Anthony_Gerace_
Jun 14, 2005Historic F5 Account
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
1 Reply
- Loc_Pham_101863Historic F5 AccountHere'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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
