본문 바로가기

About/Computer

nginx error – 413 Request Entity Too Large

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 location
        location / {
            proxy_pass         http://127.0.0.1:8000/;
        }
    }
}
디폴트값은 1MB 임.


'About > Computer' 카테고리의 다른 글

보안서적 출시  (0) 2017.04.21
메일 리턴메세지 모음  (0) 2016.03.29
rpmbuild 사용법  (1) 2012.11.26
인터넷 프로토콜 서브넷 차트(IPv4)  (1) 2012.11.16
regex 정규식 예제  (1) 2012.04.12