Forum Discussion
network_76_2027
Nimbostratus
May 29, 2015F5 irule for reverse proxy with rewrite
I want to get data from website and display as a different url.
The node and pool commands don't help because they seem to only work by IP, while I need to pass the hostname with subdomain to get the...
network_76_2027
Nimbostratus
May 29, 2015My code looks like,
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/templates/docs" -
"/templates/docs/"
{
HTTP::header replace Host http://docs.remotesite.com
HTTP::uri "/resources/templates/index.html"
pool pool_docs
}
}
}pool_docs points to "docs.remotesite.com"
My uri displayed in the browser stays at /templates/docs. I would like it to change to /templates/docs/index.html
It does seem to be pulling content from docs.remotesite.com but there are some javascript files from that page that are not being downloaded "GET" correctly.
They have a uri of /_static/jquery.js
So how do I also change the browser url display and address the javascript files issue?
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