About/Computer
nginx error – 413 Request Entity Too Large
라이천령
2016. 3. 28. 12:04
nginx 서버를 운용하다 업로드용량이 설정값보다 초과되는 경우 nginx.conf 파일에서 client_max_body_size 값을 늘려주면 된다.
http {include mime.types;default_type application/octet-stream;sendfile on;keepalive_timeout 65;server {client_max_body_size 20M;listen 80;server_name localhost;# Main locationlocation / {proxy_pass http://127.0.0.1:8000/;}}}
디폴트값은 1MB 임.