Forum Discussion
ProxyPass Replacement Question
Thanks Mayur.
The only thing about that is that we don't want the client to see the redirect take place, hence the reverse proxy configuration. Here is what I've done and I cannot seem to get it to work.
I've created two different pools (pool1 and pool2)
I've created an iApp that has a VS with no pool members.
I created an iRule that states the following:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/apps/locale/" }{
pool pool_1
}
elseif { [string tolower [HTTP::uri]] starts_with "/apps/" }{
pool pool_1
}
elseif { [string tolower [HTTP::uri]] starts_with "/cdn/" }{
pool pool_2
}
elseif { [string tolower [HTTP::uri]] starts_with "/" }{
pool pool_2
}
}
And I've also created a rewrite profile that rewrites the client URI request and applied this to the virtual server.
Client URI: /apps/locale ----> Server URI: http://server1:8103/SharedPHP/locale
Client URI: /apps ----> Server URI: http://server1:8103/Resources2011Apps/
Client URI: /cdn ----> Server URI: http://server2:8100/cdn/
Client URI: / ----> Server URI: http://server2:8100/
It does not work. Originally I was trying to put all of the servers into the same VS but because the nodes provides different functions, it was trying to load balance between them and this was causing it not to work.
Any assistance would be greatly appreciated!
Recent Discussions
Related Content
* 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