프로그램 사용/nginx2019. 4. 3. 14:15

ckeditor에 파일을 올리는데 localhost에서는 잘만 올라가는 놈인데

회사 서버에만 하면 안되서 리눅스 버전이 문제인가 고민을 했지만..

/uploader:1 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

일단은 node.js 쪽 설정은 기본으로도 충분히 잘 올라가는 상황이라 아래 내용은 별 의미없어 보이고

혹시나 리눅스용은 먼가 다른가 해서 했지만 안올라가는건 여전한 상황 -_-

[링크 : https://stackoverflow.com/questions/19917401/error-request-entity-too-large]

[링크 : http://meonggae.blogspot.com/2016/11/http-response-code-413.html]

 

 

검색을 하다보니 갑자기 반짝하는 키워드.. 아...

nginx에서 reverse proxy로 쓰고 있었는데 nginx에서도 body 크기가 제한되는데 이걸 풀어줘야 정상작동 한다.

http {
    client_max_body_size 5M;

}

[링크 : https://github.com/expressjs/body-parser/issues/235]

'프로그램 사용 > nginx' 카테고리의 다른 글

(angluar/react) router와 nginx  (0) 2019.05.31
nginx 502 bad gateway와 audit  (0) 2019.03.20
nginx rever proxy with virtual host(+ subdomain)  (0) 2019.03.07
nginx load balance  (0) 2019.03.05
nginx reverse proxy  (2) 2018.10.30
Posted by 구차니