I'd like to create a header that contains the full URL of the request. So for example:

reqadd X-Request-URL:\ ${X-Forwarded-Proto}:\/\/${Host}${Path}

Is something like this possible?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

Unfortunately, no. The header manipulation configuration commands only support adding or substituting in static strings, not dynamic variables. HAProxy remains relatively lightweight in this way in order to keep it's speed up.

link|improve this answer
2  
I'd add that it's expected to be possible in a next version, but not too soon as some changes are still necessary. – Willy Tarreau Jul 30 '11 at 11:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.