Indrajit_Basak_
Feb 04, 2014Nimbostratus
Need help of I-rule rewrite
Need Help on HTTP rewrite i-rule
Actual server is listening on port 7778 .I created pool of two real servers listening on port 7778
But when the user type http://lmjedwmsaphchh.jeddah.cpksa.local url should get rewrite to http://lmjedwmsaphchh.jeddah.cpksa.local:7778/forms/frmservlet?config=wmshcrdc-hh but the user should only see http://lmjedwmsaphchh.jeddah.cpksa.local/forms/frmservlet?config=wmshcrdc-hh
I tried by
when HTTP_REQUEST { if {[string tolower [HTTP::host]] starts_with "lmjedwmsaphchh.jeddah.cpksa.local"}{ HTTP::header replace Host "lmjedwmsaphchh.jeddah.cpksa.local:7778" } } when HTTP_RESPONSE {
if {[HTTP::is_redirect]}{ [string map {lmjedwmsaphchh.jeddah.cpksa.local:7778 lmjedwmsaphchh.jeddah.cpksa.local} [HTTP::header value Location]] HTTP::header value Location [string map {lmjedwmsaphchh.jeddah.cpksa.local:7778 lmjedwmsaphchh.jeddah.cpksa.local} [HTTP::header value Location]] } }but its not working
Regds...Indrajit