Forum Discussion
velumanidevf5_2
Jun 04, 2018Nimbostratus
iRULE to troubleshoot cookie
The application required stickness so we configured cookie presistance , sometimes its throwing 500 error page but its working perfectly with source_address presistance
so we need to troubleshhot th...
velumanidevf5_2
Jun 04, 2018Nimbostratus
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: New TCP connection to [IP::local_addr]:[TCP::local_port]" log local0. "X-Forwarded-For: [HTTP::header X-Forwarded-For]" }
when HTTP_REQUEST {
set hostvar [HTTP::host] set urivar [HTTP::uri] set ipvar [IP::client_addr] if {[HTTP::cookie exists "LB_PRODREG_PRD"]}{
log local0. "[IP::client_addr]:[TCP::client_port]: Request with persistence cookie [HTTP::cookie value "LB_PRODREG_PRD"] to [HTTP::host][HTTP::uri]"
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: Request contains NO persistence cookie to [HTTP::host][HTTP::uri]" }
}
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Request sent to [LB::server]"
}
when LB_FAILED {
log local0. "[IP::client_addr]:[TCP::client_port]: Request failed to [LB::server]"
}
when HTTP_RESPONSE { set responsecode [HTTP::status] log local0. "Response code is $responsecode" if { [HTTP::status] eq 500 } { log local0. "$ipvar requested $hostvar $urivar and received a 500 from [IP::server_addr]" } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects