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.

New in version 1.5 is the http-response add-header directive. As written in the documentation -- this can be used in frontend, backend and listen.

What I was trying to within a frontend section:

use_backend some_backend                if some_condition
http-response add-header Vary Origin    if some_condition

But this has no effect. The same line placed in the backend section works perfectly fine. Can someone please help me understand, what I am missing here? I don't understand, why this does not work in the frontend section.

My guess would be that within the fronted there is no response yet and so the directive fails. I tried using it before and after die use_backend directive.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.