Welcome! Log In Create A New Profile

Advanced

Re: Behavior of security headers

Valentin V. Bartenev
January 26, 2015 08:50AM
On Monday 26 January 2015 08:38:08 okamzol wrote:
> That's exactly the point - I wanted to set these headers on server level to
> become valid for the whole domain and all inherent location blocks. This
> avoids the need to repeat all headers in each location...
>

But are you sure, that you don't have add_header directives in your location
blocks at the same time?

Please note:

server {
add_header X-Header-One one;
add_header X-Header-Two two;

location / {
add_header X-Header-Three three;
}
}

in the configuration above only the X-Header-Three will be added to response.

wbr, Valentin V. Bartenev

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

Behavior of security headers

okamzol January 26, 2015 06:19AM

Re: Behavior of security headers

Valentin V. Bartenev January 26, 2015 08:32AM

Re: Behavior of security headers

okamzol January 26, 2015 08:38AM

Re: Behavior of security headers

Valentin V. Bartenev January 26, 2015 08:50AM

Re: Behavior of security headers

okamzol January 26, 2015 09:35AM

Re: Behavior of security headers

B.R. January 26, 2015 11:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready