V
V
vitaliy22018-02-05 12:51:38
Nginx
vitaliy2, 2018-02-05 12:51:38

How to allow GET requests larger than 5400 bytes in nginx?

When the total query + all headers exceed approximately 5400 bytes, nginx does not return a response and the connection is closed (it does not even give an error).
Tried:

  • client_header_buffer_size 32k;
  • large_client_header_buffers 4 64k;
  • client_max_body_size 1m;
  • client_body_buffer_size 1m;
  • annotate the use of $args

Nothing helps. There is no backend, a static html file is given. Nobody knows the reason? Or is it the browser itself limiting?
PS. Advising POST - I know what POST is for, and what GET is for. In my case, this is a search query string that must be present in the URL so that the user can copy and save this link. POST won't work here.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
fixid, 2018-02-05
@Fixid

Do not look for a problem out of the blue, use POST which is intended for this

K
key don, 2018-03-01
@keydon2

Look at here. I have not tried to configure it myself.
https://disnetern.ru/nginx-server-configure-and-pr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question