Forum Discussion
nitass
Mar 12, 2013Employee
is it something like this?
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.252:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set mod_ck 0
if { [HTTP::host] equals "accesscontrol.abc.com.au" and [HTTP::uri] starts_with "/Login/someapp" } {
set mod_ck 1
}
}
when HTTP_RESPONSE {
if { $mod_ck } {
HTTP::cookie insert name "setRequestAuthContxt" value SOMEKEY domain "abc.com.au"
}
}
}
set-cookie
[root@ve10:Active] config curl -Ik https://accesscontrol.abc.com.au/Login/someapp
HTTP/1.1 404 Not Found
Date: Tue, 12 Mar 2013 10:22:49 GMT
Server: Apache/2.2.3 (CentOS)
Content-Type: text/html; charset=iso-8859-1
Set-Cookie: setRequestAuthContxt=SOMEKEY;domain=abc.com.au;
no set-cookie
[root@ve10:Active] config curl -Ik https://accesscontrol.abc.com.au/
HTTP/1.1 200 OK
Date: Tue, 12 Mar 2013 10:23:09 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sat, 27 Oct 2012 03:22:35 GMT
ETag: "4183f3-59-f28f94c0"
Accept-Ranges: bytes
Content-Length: 89
Content-Type: text/html; charset=UTF-8