Forum Discussion
ccmoore
Nimbostratus
Apr 14, 2023f5 reverse proxy to remove ports in URI
Hello, I have to containers running on an internal docker host. Two apps presenting on two ports. 9445 and 42828. I have one domain testws02.usneeded.com. to hit the containers now we have to go t...
CA_Valli
MVP
Apr 20, 2023You should specify a default staetment that matches connections that don't meet previous criteria,
action can be anything you want - you can load balance it or you can drop it if that's the best option for you.
ccmoore
Nimbostratus
Apr 20, 2023Thanks for clarifying.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] ne "testws02.usneeded.com"}{ return }
switch -regex [HTTP::uri] {
Can you help me to understand whats happening on the switch -regex line? Im asking because I'm getting 401's and wondering if the issue is there. It seems that there may be some header information not being forwarded of some sort.
Im getting this error:
| traceId | "43e5abc0-1e8d-41bd-b369-49bfab8de3c7" |
| code | 401 |
| description | "Authorization failure. Authorization information was invalid or missing from your request." |
| message | "Unauthorized" |
\
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