자유게시판

  • Nginx : 414 Request-URI Too Large 오류

    페이지 정보

    profile_image
    작성자천사 조회 4,622회 작성일 2021-08-22 13:57:07 댓글 0

    본문

    $ vim /etc/nginx/nginx.conf

     

    client_header_buffer_size 1k; #일반적인 요청의 헤더는 1kb 버퍼로 처리

    large_client_header_buffers 4 8k; # 큰 요청 시 4개의 8kb 버퍼로 처리

     

    large_client_header_buffers 4 32k; # 32k 또는 64k 등

     

    정도로 처리

     

    반영을 위해서 

     

    nginx -s reload 또는 service nginx restart

     

     

    Syntax: large_client_header_buffers number size;
    Default:
    large_client_header_buffers 4 8k;
    
    Context: httpserver

     

    Sets the maximum number and size of buffers used for reading large client request header.

    A request line cannot exceed the size of one buffer, or the 414 (Request-URI Too Large) error

    is returned to the client. A request header field cannot exceed the size of one buffer as well, or

    the 400 (Bad Request) error is returned to the client. Buffers are allocated only on demand.

    By default, the buffer size is equal to 8K bytes.

    If after the end of request processing a connection is transitioned into the keep-alive state, these

    buffers are released.

    댓글목록

    등록된 댓글이 없습니다.

    Copyright © blog.batifa.com All rights reserved.