Forum Discussion
jason_millan_40
Nimbostratus
Jun 09, 2016ProxyPass URI Rewrite with wildcard matching
We are loooking to do some URI rewrites with the Proxypass irule that acheive the following:
-> -> -> ->
so the unique part of the URI could be evergrowing in the order of thousan...
Yann_Desmarest_
Nacreous
Jun 09, 2016Hi,
Below an irule that may help you to start :
when HTTP_REQUEST {
if { [HTTP::host] eq "hostA" } {
can set hostname in v11.5+ otherwise, should use HTTP::header replace Host "hostB"
HTTP::host "hostB"
}
Rewrite uri
HTTP::uri "/pathB/[URI::basename]"
}
- Yann_Desmarest_Jun 09, 2016
Nacreous
For the response rewrite, you will need a stream profile - jason_millan_40Jun 09, 2016
Nimbostratus
Gathering from the responses that ProxyPass iRULE doesn't support wildcarding so I am going to have to get dirty. I might borrow from ProxyPass how they do the streaming. Will reply back with updates and share the results!
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