atom feed1 message in ru.sysoev.nginxHow to override 'proxy_set_header
FromSent OnAttachments
GelonidaJul 13, 2011 11:31 am 
Subject:How to override 'proxy_set_header
From:Gelonida (gelo@gmail.com)
Date:Jul 13, 2011 11:31:34 am
List:ru.sysoev.nginx

Still new to nginx, and having some basic problems.

I'm having a config file 'proxy.conf' which I normally include in locations, which should be proxied.

for one location I'd like to override a header specified in the proxy.conf file.

what I tried

location /blabla { include.proxy.conf; proxy_set_header Host custum_val }

However this just appends my customval to the already existing 'Host' header.

Is there a way to override a header?

I considered changing the variable $host

However: I don't know the syntax to do this. I don't know who else uses the variable $host, thus I'm not sure whether some side effects would show up.

How do you handle such situations?