Forum Discussion
ghost-rider_124
Nimbostratus
Nov 24, 2014IRULE Template for URL Masking (Request and Response)
Hello Experts I am in the process of doing URL masking (changing host name, hard code links in header and payload). The front end user URL is webportal.abc.com and backend server URL is server1. ...
Arie
Altostratus
Nov 24, 2014Based on your description it looks like you may not even need to do any kind of transformation.
The request from the client specifies the path (e.g. "/abc") separately from the hostname (which is stored in the HTTP-header "host").
Depending on how the node (pool member) handles the hostname you may not have to worry about it.
It is possible to re-write the request, but it looks like you may not need to do this.
If you do need to change the host you can swap out the value of the HTTP-header "host":
when HTTP_REQUEST {
HTTP::header replace host server1
}
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