Nginx : 414 Request-URI Too Large ์ค๋ฅ
ํ์ด์ง ์ ๋ณด
๋ณธ๋ฌธ
$ 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ย |
|---|---|
| Default: |
large_client_header_buffers 4 8k; |
| Context: | http,ย server |
ย
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.
๋๊ธ๋ชฉ๋ก
๋ฑ๋ก๋ ๋๊ธ์ด ์์ต๋๋ค.
