Created on
12-09-2025
12:10 AM
Edited on
12-18-2025
07:57 AM
By
Rajashekar
| Description | This article describes how to forward HTTP traffic by matching HTTP Host and URL using a LUA script. |
| Scope | FortiADC. |
| Solution |
Requirement:
when HTTP_REQUEST {
if host == "web1.dvwa.ftntlab" then
elseif host == "web2.dvwa.ftntlab"
elseif host == "web3.dvwa.ftntlab" then end
Assign a virtual server with the created script.
Demonstration:
Debugging commands for troubleshooting:
Disable debugging output:
Related documentation about Scripting: |
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 2026 Fortinet, Inc. All Rights Reserved.