thanks for respond. still can't make it to work.
Here is the rule that i use:
when HTTP_REQUEST {
if {([TCP::local_port] eq "80") and ([IP::addr [IP::client_addr]/16 equals 10.0.0.0])} {
HTTP::respond 302 Location "https://[HTTP::host][HTTP::uri]" Set-Cookie "my_cookie=MLInt\; Path=/test\; Domain=10.110.2.2\;"
} elseif {[TCP::local_port] eq "80" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else {
pool eRoom-Servers-Pool
}
}
and here is what i see as a respond from BigIP. Nothing in the Cookie. what i'm doing wrong?
HTTP/1.0 302 Found
Location: https://10.110.2.2/eroom
Server: BIG-IP
Connection: Keep-Alive
Content-Length: 0