A
A
Alexander Shestakov2016-04-18 11:53:42
Nginx
Alexander Shestakov, 2016-04-18 11:53:42

How to accept and pass on a custom header in nginx?

Hey!
There is a scheme: balancer1 -> balancer2 -> service
How should balancer1 and balancer2 be configured so that service gets host or x-fowarded-host or any other custom header equal to balancer1 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-04-19
@OxGroup

add_header X-my-header my-header-content;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question