Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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