Welcome! Log In Create A New Profile

Advanced

Re: A question about add_header replication

agentzh
November 17, 2009 05:18AM
On Mon, Oct 5, 2009 at 4:11 PM, bit bull <bitbull.cn@gmail.com> wrote:
> hi,all:
>
>    hello, I config "add_header Server xxxx;", then I get response header:
>
> < HTTP/1.1 200 OK
> < Server: nginx/0.8.17
> < Date: Mon, 05 Oct 2009 07:59:18 GMT
> < Content-Type: text/html
> < Content-Length: 151
> < Last-Modified: Mon, 05 Oct 2009 07:24:51 GMT
> < Connection: keep-alive
> < Server: xxxx
> < Accept-Ranges: bytes
>
> We can see Server field is printed twice. I need replace first one.

The "more_set_headers" of the "headers_more" module will work the way
that you expect now:

more_set_headers 'Server: xxxx';

Also, it applies to all the status code by default, unlike the
standard "headers" module. Use the -s option of the "more_set_headers"
directive if you want more control over it ;)

See http://github.com/agentzh/headers-more-nginx-module for more details.

Cheers,
-agentzh
Subject Author Posted

A question about add_header replication

bit bull October 05, 2009 04:16AM

Re: A question about add_header replication

Maxim Dounin October 05, 2009 12:00PM

Re: A question about add_header replication

bit bull October 05, 2009 01:10PM

Re: A question about add_header replication

agentzh October 05, 2009 09:26PM

Re: A question about add_header replication

bit bull October 06, 2009 08:18AM

Re: A question about add_header replication

agentzh October 06, 2009 10:28PM

Re: A question about add_header replication

bit bull October 07, 2009 01:48AM

Re: A question about add_header replication

agentzh October 07, 2009 10:26PM

Re: A question about add_header replication

bit bull October 08, 2009 11:38PM

Re: A question about add_header replication

agentzh November 17, 2009 05:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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