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.

How configurate nginx to set proxy_set_header for all domains, but not for everyone?

share|improve this question

migrated from stackoverflow.com Aug 25 '11 at 13:48

This question came from our site for professional and enthusiast programmers.

1  
What's the problem to define it at http level? –  Alexander Azarov Aug 25 '11 at 10:11

1 Answer 1

Just put your proxy_set_header in your http block and not only in your server or location block.

proxy_set_header syntax: proxy_set_header header value;

default: Host and Connection

context: http, server, location

share|improve this answer

Your Answer

 
discard

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