Welcome! Log In Create A New Profile

Advanced

How to override 'proxy_set_header

Gelonida
July 13, 2011 02:34PM
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?



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to override 'proxy_set_header

Gelonida July 13, 2011 02:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready