Angelo
Aug 08, 2012Nimbostratus
rewrite body of web-site
Hi is it possible to write body of a web-site where the code says http i need to change it to https. can anyone assist...
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
stream {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://www.test.com@https://www.test.com@}
STREAM::enable
}
}
}
response from server
[root@ve10:Active] config curl http://200.200.200.101/test.html
start of content
hello world
url is http://www.test.com/something
another url is http://www.googe.com/
end of content
response from bigip
[root@ve10:Active] config curl http://172.28.19.79/test.html
start of content
hello world
url is https://www.test.com/something
another url is http://www.googe.com/
end of content