# Large\_client\_header\_buffers does not work in in server context

**URL:** <https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093>\
**Category:** NGINX\
**Created:** [August 21, 2015, 12:11am UTC](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093 "2015-08-21T00:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 21, 2015, 12:11am UTC](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093/1 "2015-08-21T00:11:05Z")

</div>

Hello,

large\_client\_header\_buffers does not seem to work in server context,  
however it works fine in http context. Documentation says it should work  
for both [1] and looking at the application code it seems like it should  
too [2].

I am running multiple server definitions and I’ve tried nginx versions  
1.6.2 and 1.8.0.

Any help is greatly appreciated!

-jason

[1]  
[http://nginx.org/en/docs/http/ngx\_http\_core\_module.html#large\_client\_header\_buffers](http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers)  
[2]

> <https://github.com/nginx/nginx/blob/branches/stable-1.6/src/http/ngx_http_core_module.c#L262-L267>

---

<div class="post-metadata">

**Author:** ![jtoy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jtoy](https://www.ruby-forum.com/u/jtoy)\
**Post date:** [August 21, 2015, 5:25pm UTC](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093/2 "2015-08-21T17:25:12Z")

</div>

On Thursday 20 August 2015 15:10:16 Jason T. wrote:

> Any help is greatly appreciated!

[..]

It works for the server context, but for obvious reason it uses the  
default  
server context till the host header is received and parsed.

wbr, Valentin V. Bartenev
