Forum Discussion
Kurt_Knochner_5
Oct 31, 2011Cirrus
O.K. now I'm a bit cinfused. You are rewrting the external URI dv-strsohioportal.tld to paris-test.tld and you distribute the requests to two different sites (/inv and /its). Is that correct? If so, why is your internal domain (paris-test.tld) different that your external (dv-strsohioportal.tld)? In that case you'll have to rewrite the Host Header as well. Furthermore you should also use a STREAM profile to rewrite any occurances of paris-test in the HTML code to dv-strsohioportal, otherwise some absolute links might not work, as the external client does not know how to access http://paris-test.tld.
TODO:
1.) Rewrite the HOST Header [HTTP::header Host]
2.) Add a STREAM profile to rewrite HTML
3.) Don't add /default.aspx to every page. Change
this: HTTP::uri "http://paris-test[HTTP::uri]/default.aspx"
to this: HTTP::uri "http://paris-test[HTTP::uri]
Hope that works. If it does not, I reccommend to capture the whole traffic between client -> LB -> backend with tcpdump and check where rewriting works and where not.
BTW: paris-test is not a FQDN. Is that just to obfusciate the domain name? If not, how does the LB resolve that name and how does the webserver handle that "domain name"?
Regards
Kurt Knochner