Igor_Morgado_38
Feb 03, 2011Nimbostratus
HTTP response data (html body) rewrite - questions
Helloset as
Im trying to apply a stream profile to change a string in html response from server the source is:
body marginheight="0" marginwidth="0" rightmargin="0" leftmargin="0" topmargin="0" onload="onLoadBody()"
I want to
body marginheight="0" marginwidth="0" rightmargin="0" leftmargin="0" topmargin="0"
Creating a stream profile seems not work, my actual configuration in stream profile is:
Source: onload="onLoadBody()"
Target: (empty) tried put some placeholder and also didnt worked.
My VS has the following configs:
virtual vs_mgp {
snat automap
pool mgp_http_pool
destination 172.27.0.251:http
ip protocol tcp
persist mgp_pr_srcaddr
profiles {
mgp-http-lan-optimized-caching {}
mgp-oneconnect {}
mgp-tcp-lan-optimized {
serverside
}
mgp_remove_onload {}
tcp-wan-optimized {
clientside
}
}
}
ltm profile http mgp-http-lan-optimized-caching {
defaults-from http-lan-optimized-caching
insert-xforwarded-for disabled
ramcache disabled
ramcache-uri-exclude none
ramcache-uri-include none
ramcache-uri-pinned none
response-chunking rechunk
}
ltm profile one-connect mgp-oneconnect {
defaults-from oneconnect
}
ltm profile stream mgp_remove_onload {
defaults-from stream
source "onload=\"onLoadBody()\""
target TAGME
}