Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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
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

Your Answer

 
discard

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.