Forum Discussion
Redirecting part of a URL
SteveD1979 Do you intend for this to be a redirect or a rewrite that only the pool member sees? Is the "theirapp" always the same length and in the 3rd section of the FQDN?
I think either would work and it would always be whatever comes before the example.com but different legnths
- PauliusOct 06, 2023MVP
SteveD1979 If you will always convert .gtm. to .datacenter. you can do the following.
when HTTP_REQUEST priority 500 { if {[HTTP::host] contains ".gtm."} { HTTP::host [string map {".gtm." ".datacenter."}[HTTP::host]] } }
- SteveD1979Oct 06, 2023Cirrostratus
Thanks I tried that but it isn't flipping it.
- SteveD1979Oct 06, 2023Cirrostratus
Does it matter that this is a performance layer 4 VIP?
- PauliusOct 06, 2023MVP
SteveD1979 If this is HTTP traffic you can change it to a standard, apply an HTTP profile, and the irule in question and it should work. If you are doing HTTPS communication it would require that you change it to standard, HTTP profile, SSL client profile, and the iRule and it should work.
- SteveD1979Oct 06, 2023Cirrostratus
Ok thanks. Per openshift the VIP has to be layer 4 but i was able to put the HTTP profile on it since the one we're testing is http and since it let me add the irule with http_request i thought it might be ok.
- PauliusOct 09, 2023MVP
SteveD1979 Sadly, with an SSL connection and you do not have SSL termination being performed on a standard VS you cannot have an HTTP profile because the F5 cannot look at the HTTP header since it's encrypted.
Recent Discussions
Related Content
* 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