Forum Discussion
Jeremy_Lanzarot
Nimbostratus
Sep 24, 2008Irule to log client source IP
I am trying to log the source IP address of every request that hits a VIP on a 4.2 BigIP to a file, /var/log/ldap_clients.log on the Bigip. Right now there is no irule on the VIP, it is just using a ...
Irule sometime do not like to many redirects statements I will do something as follow when HTTP_REQUEST {
if {[HTTP::uri] equals "/" } then { if { [HTTP::header "Accept-Language"] contains "en"} then {set Language "english/index.en"} elseif { [HTTP::header "Accept-Language"] contains "ar"} then {set Language "arabic/index.ar"} elseif { [HTTP::header "Accept-Language"] contains "fr"} then {set Language "french/index.fr"} HTTP::redirect "$Language" }
}
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