Forum Discussion
Inserting multiple values for the same HTTP Header
Hi,
I'm trying to insert 2 values for the HTTP header X-Frame-Options and wasn't sure what the correct syntax is. The following doesn't seem to work:
when HTTP_RESPONSE { HTTP::header insert "X-Frame-Options" "SAMEORIGIN" HTTP::header insert "X-Frame-Options" {ALLOW-FROM https://test.com} }
What's the correct syntax to accomplish this?
Thanks.
1 Reply
- James_Taylor
Nimbostratus
You may have already tried this, but in may documents for filters in syslog-ng that appear on devcentral, you need to remove and re-add any syslog remote server before the filters are to take effect. Please see the impact of the procedure below.
Removing the currently defined remote syslog servers
You must remove the current defined remote syslog servers before you configure the include statement with the filter rule and destination server. To do so, perform the following procedure:
Impact of procedure: Log messages will not be sent to the currently defined remote syslog servers until the remote syslog servers are re-added in the following procedure.
- Log in to tmsh by typing the following command:
- tmsh
- To list any currently defined remote syslog servers, if configured, type the following command:
- list /sys syslog remote-servers
- The following is an example of the command output on a BIG-IP system that is configured with a remote syslog server at IP address x.x.x.x:
- sys syslog {
- remote-servers {
- host x.x.x.x
- }
- }
- Take note of any currently defined remote syslog server information; you will need it in the following procedure.
- To remove the currently defined remote syslog servers, type the following command:
- modify /sys syslog remote-servers none
- Save the change by typing the following command:
- save /sys config partitions all
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