Mike_Graston_10
Jul 13, 2007Nimbostratus
Simple Base URl rewrite
OK I have been looking at this forum and I know it's here somewhere but can't find it. My issue is I have a proxy server sitting in front of a web site http:///abc.com. I need to rewrite the url going to the proxy to http://def.com. send it to my proxy pool in my VS. then on it;s reverse path back to the client rewrite the base url back to http://abc.com. Of course this is all while keeping the uri portion in tact.
I think I am on the right track with this script but it is puzzing on the return trip.
when HTTP_REQUEST {
set userhost [HTTP::host]
if { $userhost == "abc" } {
set userhost " def "
}
any help would be appreciated.