Monday 10 February 2014

Nginx Error - 413 Request Entity Too Large

Hi if you get 413 Request Entity Too Large error in Nginx Serve to avoid this error some people suggest increase post size in php.ini ie
post_max_size = 25M
But even changing this value error still occurring means you need to change nginx configuration file.
add client_max_body_size 20M to nginx configuration file of server. check below where to add that line.

server {
    client_max_body_size 20M;
    listen 80;
    server_name example.com;
    access_log /var/log/nginx/nginx.access.log;
    error_log /var/log/nginx/nginx.error.log;
....
....
}

Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.