Forum Discussion

mattias_56723's avatar
mattias_56723
Icon for Nimbostratus rankNimbostratus
Nov 16, 2010

Add info to http header apache

Hi,

 

I need to mark all requests thats are entering via https://VIP with an extra http-header information.

 

 

something like this (not f5 syntax)

 

when HTTP_REQUEST {

 

if { "request is https" } {

 

HTTP::header add "req-via-https" "true"

 

}

 

}

 

 

then passing the request to the backend servers with the extra header information.

 

Is it possible ? and can someone help me with the syntax ?

 

 

Best regards

 

Max

 

 

1 Reply

  • Hi Maddox,

     

     

    You can use two custom HTTP profiles to do this efficiently:

     

     

    http://devcentral.f5.com/Forums/tabid/1082223/asg/52/showtab/groupforums/aff/31/aft/1171106/afv/topic/Default.aspx

     

     

    Aaron