Description | This article describes how to use server load-balancing scripting to achieve the requirement of adding an HTTP Header in the response direction. The objective is to enable the client/developer to observe the server identifier in the response HTTP header, indicating which real server responded to the request. |
Scope | FortiADC, FortiADC VM. |
Solution |
Traffic flow:
Virtual Server FQDN: dvwa.ftntlab.local.
Requirement:
local shared_host when HTTP_RESPONSE {
Details and comments on the Lua script are used in this article.
Note that there is a static record for variable backend_servers that needs to be maintained if the server IP address is changed.
Note: Refer to the article for more information: How to Generate script log.
Related documentation on Server Load Balance script usage: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.