Welcome! Log In Create A New Profile

Advanced

add_header works in server but not in http?

May 14, 2011 11:46PM
Hello, I decided I'd clean up my configuration files for Nginx. It's long overdue.

I have the following in my nginx.conf but is never sent. I don't have another reference to this header anywhere.

add_header X-UA-Compatible 'IE=edge,chrome=1';

Moreover, if I move the line into a Server block, it works fine.

Docs say can be used in Http, Server and Location. I'm at a loss.

Bret
Subject Author Posted

add_header works in server but not in http?

holstebm May 14, 2011 11:46PM

Re: add_header works in server but not in http?

holstebm May 14, 2011 11:58PM

Re: add_header works in server but not in http?

Igor Sysoev May 15, 2011 08:54AM

Re: add_header works in server but not in http?

holstebm May 15, 2011 10:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
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