Forum Discussion
nitass
Dec 18, 2011Employee
can you try?
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set static::site-identDDE "ddewcsp"
set static::responseContent {
\${static::site-identDDE}
}
}
when HTTP_REQUEST {
HTTP::respond 200 content [subst $static::responseContent]
}
}
[root@ve1023:Active] config curl -i http://172.28.19.79
HTTP/1.0 200 OK
Server: BigIP
Connection: Keep-Alive
Content-Length: 29
${static::site-identDDE}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set static::site-identDDE "ddewcsp"
set static::responseContent \
\${static::site-identDDE}
}
when HTTP_REQUEST {
HTTP::respond 200 content [subst $static::responseContent]
}
}
[root@ve1023:Active] config curl -i http://172.28.19.79
HTTP/1.0 200 OK
Server: BigIP
Connection: Keep-Alive
Content-Length: 7
ddewcsp
[root@ve1023:Active] config