Configuring Nginx for large URIs

前端 未结 1 1274
失恋的感觉
失恋的感觉 2021-02-04 02:21

I have a large URI and I am trying to configure Nginx to accept it. The URI parameters are 52000 characters in length with a size of 52kb. I have tried accessing the URI without

1条回答
  •  [愿得一人]
    2021-02-04 02:54

    I have found the solution. The problem was that there were multiple instances of nginx running. This was causing a conflict and that's why the large_client_header_buffers wasnt working. After killing all nginx instances I restarted nginx with the configuration:

    client_header_buffer_size 64k;
    large_client_header_buffers 4 64k;
    

    Everything started working after that.

    Hope this helps anyone facing this problem.

    0 讨论(0)
提交回复
热议问题