Monday, February 10, 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;
....
....
}

0 comments:

Post a Comment