Monday, March 18, 2013

Nginx 413 Request Entity Too Large


I got Nginx error 403: Request entity too large. How do I fix this problem and allow file upload upto 2MB in size?


    # vi /usr/local/nginx/conf/nginx.conf
Add client_max_body_size in http section

    http {      ....      client_max_body_size 2M;      ....  }

Save and close the file. Reload the nginx
    # /usr/local/nginx/sbin/nginx -s reload

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...