Forum Discussion
Alex__Applebaum
Employee
Aug 14, 2012LTConfig::Field::get_values question
Am trying to set values for syslog config. I can get get/set_value methods to work but would like to set multiple values and am having trouble with get/set_values. Tried several different things but a...
The_Bhattman
Nimbostratus
Jul 20, 2009Understood. You can do another type of command that might work nicely for you called "string map" (Click here)
string map {find1 replace1 find2 replace2} [HTTP::host]
Example
when HTTP_REQUEST {
if { [matchclass [string to lower [HTTP::header "User-Agent"]] contains $::useragent_list ] } {
HTTP::redirect "http://[string map -nocase {"www." "m." } [HTTP::host]][HTTP::uri]"
} else {
HTTP::redirect "http://[string map -nocase {"www." "www2." } [HTTP::host]][HTTP::uri]"
}
}
Hope this helps
CB
Hi Anoop,
are you able to fix this issue ? It seems an authorization issue while creating EC2. You may try with different AMI image.It could be possible current AMI used by your cloudformation template is deprecated.
I am using F5 provided CFT(https://s3.us-east-2.amazonaws.com/supernetops-cf-templates/class1.template). may I know how would change AMI manually.