Forum Discussion
Trying to replace the header host value if it doesn't match 2 conditions
Sorry, edited the previous code snippet. "set" should be used for variable creation.
Oh right, I should have know that as well. However it still does not work as it does not like something in the syntax. Also I am not triggering it based on the host. The item that is supposed to trigger the event is if the http header does not have a specific hostname in the header.
- Vijay_EAug 09, 2019
Cirrus
So, it isn't working but no error ? If so, have you tried using log local0 for logging ?
- pchaceAug 09, 2019
Nimbostratus
No, it still gives an error when I try to save the rule. The error is: 01070151:3: Rule [/Common/rule_abc_host_header_replace] error: /Common/rule_abs_host_header_replace:2: error: [wrong # args][set HOST = [string tolower [HTTP::host]]]
- Vijay_EAug 09, 2019
Cirrus
Based on the error message, it looks like you have an extra ] in the set command.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
