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...
Yann_Desmarest
Cirrus
Jun 22, 2016Hi,
You can try an irule simmilar to below code :
when HTTP_REQUEST {
if { [HTTP::host] contains "uat-alfresco-euro.kamlesh.com" } {
HTTP::redirect http://[string map { "uat-alfresco-euro.kamlesh.com" "uat3.alfresco-euro.kamlesh.com" } [HTTP::host]][HTTP::uri]
}
}This is a simple redirect. Just saw that you need to rewrite the host header so Stefan's irule is correct. But you may need to rewrite the response body to make sure that uat3.alfresco-euro.kamlesh.com is not visible from external.
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