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...
Stefan_Klotz
Cumulonimbus
Jun 22, 2016Hi Kamlesh,
if you want that the original URL in your browsers address bar shouldn't be changed, then we are talking about URI rewriting instead of HTTP redirect. So in your example you want to exchange the host-part of your URL/request. Please try this one:
when HTTP_REQUEST {
Replace host header with the internal name
HTTP::header replace Host uat3.alfresco-euro.kamlesh.com:2095
}
Please also have a look on the ProxyPass Lite iRule in case you might need to rewrite something in responses from the server as well. Hope that helps.
Ciao Stefan 🙂
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