Forum Discussion
Jnon
Nimbostratus
Nov 30, 2017Host Header rewrite and uri path modification
Could use some assistance on with modifying my host and uri string as follows:
myhost.com/path1/path2/path3/
needs to be rewritten after the ssl offload as:
path1.myhost.com/path2/path3/
t...
crodriguez
Nov 30, 2017Ret. Employee
You might use something like:
when HTTP_REQUEST {
set qual1 [getfield [HTTP::uri] "/" 2]
HTTP::host "$qual1.[HTTP::host]"
HTTP::uri [substr [HTTP::uri] [expr ([string length $qual1] + 1)]]
}
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
