Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - TheDebugger

Pages: [1]
1
CentOS 7 Problems / XML post request 413 Request Entity Too Large error
« on: January 31, 2026, 03:17:41 PM »
Good day everyone,

Am creating an api server but I am running into a problem.

As soon as I send an xml larger than 1 mb, the server gives the error "413 Request Entity Too Large error".

I'm using the mode “Nginx + Apache php-cgi/suphp Performance”

In the error log of Apache it says: POST /api/planning/BurgerMarineForwarding?id=64340 HTTP/1.1" 413 316 "-" "3PL%2bSystem/27.3.131118.0"

/etc/nginx/nginx.conf:
client_header_timeout 3m;
client_body_timeout 3m;
client_max_body_size 256m;
client_header_buffer_size 4k;
client_body_buffer_size 256k;
large_client_header_buffers 4 32k;

/usr/local/php/php.ini:
upload_max_filesize = 50M
max_file_uploads = 20
post_max_size = 50M
max_execution_time = 600
max_input_time = 600
memory_limit = 256M

Pages: [1]