Forum Discussion
IheartF5_45022
Mar 17, 2014Nacreous
Personally I would not use X-Forwarded-For as it's now a de-facto RFC-header which is used to store an IP address. Here is what you need (chose your own header name);-
when HTTP_REQUEST {
if {[HTTP::host] equals "original.hostname.com" } {
Replace host header value original.hostname.com with custom.hostname.com
HTTP::header insert X-Forwarded-Host [HTTP::header Host]
HTTP::header replace Host custom.hostname.com
}
}