ProxyPass Replacement Question
Hello,
I have a customer who needs an environment set up that will be replacing their Apache environment. I have the VS set up but am not confident on how I should go about setting up the reverse proxy piece. I created a rewrite profile but am also interested in a related iRule. Here is what is being requested:
ProxyPass /apps/locale ----> http://server1:8103/SharedPHP/locale
ProxyPass /apps ----> http://server1:8103/Resources2011Apps/
ProxyPass /cdn ----> http://server2:8100/cdn/
ProxyPass / ----> http://server2:8100/
Is the URI rewrite profile the correct way to do this? I set up something as follows for example for the rewrite profile:
Rule Type:
Both
Client URI:
/apps/locale/
Server URI:
http://server1:8103/SharedPHP/locale
Can someone also provide an example of how I would achieve this with an iRule as well?
Thanks!