Maynor_Ovalle
May 02, 2007Nimbostratus
How do I rewrite a private dns redirect to a public available dns since the app is being accessed externally
I'm very new at writting iRules but would love some assistance or tips on how we can accomplish the following.
We basically have a web application that is making internal url redirects on a public assessible web site. What we need to do is to be able to catch that redirect on an HTTP_RESPONSE and rewrite it with the public accessible url but still keep the HTTP::uri header untouched. There seems to be some limitation where you can not use HTTP::uri header call on an HTTP_RESPONSE. Any ideas on how we can accomplish this? Thanks for your assistance. Below is an example of what we thought would work.
when HTTP_RESPONSE {
if { [HTTP::host] contains "internalurl.com"} {
HTTP::redirect "publiurl.com" ":" 1][HTTP::uri]
}
}