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:
You can achieve it using iRule or LTM policy. One example iRule is given below. You can try it. First you need to configure Virtual Server with proper configuration and bind below iRule to it.
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/” }{
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.
Yes, I was able to resolve this. I utilized a combination of a rewrite profiles and iRules to accomplish what I need. Essentially, the rewrite profile takes care of the URI translations and if you will need different URIs going to different back end servers, an iRule can help achieve this.
I utilized this tutorial to help me with configuration:
Let me know if you need any additional assistance.