Example of Static Variables with Virtual Server specific settings
Published Sep 11, 2020
Version 1.0Was this article helpful?
Hi Chad,
you may think about using static::array() variables. Much cleaner for such usecases...
when RULE_INIT {
set static::virtualLimit(http_test) "25"
set static::virtualLimit(https_test) "50"
}
when HTTP_REQUEST {
HTTP::respond 200 content "OK - Limit Variable = $static::virtualLimit([URI::basename [virtual]])"
}
Cheers, Kai