Moinul_Rony
Mar 17, 2014Altostratus
Want to insert X-Forwarded-for Original Hostname.
One of our virtual server has an irule to rewrite the original incoming URL to a custom URL toward the server.
How can I include the original hostname as a X-Forwarded-For header so that that can be used as well by the application server.
Our iRule:
when HTTP_REQUEST {
if {[HTTP::host] equals "original.hostname.com" } {
Replace host header value original.hostname.com with custom.hostname.com
HTTP::header replace Host custom.hostname.com
}
}
We would want to insert a X-forwarded-For [original hostname]
Thanks,