Forum Discussion
Kamleshwar_2732
Nimbostratus
Jun 22, 2016Irule required for mentioned url
Hello,
Need an Irule for mentioned url -
When we call urls starting with http://uat-alfresco-euro.kamlesh.com:2095/alfresco/webdav it should call
http://uat3.alfresco-euro.kamlesh.com:2095...
Vijay_E
Cirrus
Jun 22, 2016If you are trying to mask the domain name, try this:
when HTTP_REQUEST {
if { [HTTP::host] contains "uat-alfresco-euro.kamlesh.com" } {
HTTP::host [string map {"uat-alfresco-euro.kamlesh.com" "uat3.alfresco-euro.kamlesh.com"} [HTTP::host]]
}
when HTTP_RESPONSE {
if { [HTTP::header values Location] contains "uat3-alfresco-euro.kamlesh.com" } {
HTTP::header replace Location [string map {"uat3-alfresco-euro.kamlesh.com" "uat.alfresco-euro.kamlesh.com" [HTTP::header value Location]]
}
}
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