내용
파트너센터 error 로그에 Apache/mod_wsgi 에러 발생 확인
원인
- 서버에서 클라이언트로 응답을 보낼 때 중간에 끊길 때 발생하는 에러 확인
- IE에서 파트너센터 font를 다운로드 할 때 500에러 발생
- IE에서 캐쉬를 사용하지 않을 경우 font를 정상적으로 응답 받지 못함
- error 로그 내용
- mod_wsgi (pid=xxxx): Exception occurred processing WSGI script '/home/service/was/partner/app.wsgi'
- IOError: Apache/mod_wsgi failed to write response data : Broken Pip.
조치
- 파트너센터 app.py에서 after_request 주석 처리
- 아래 소스 주석 처리
@app.after_request def response_checker(response): # disable cache from datetime import datetime response.headers['Last-Modified'] = datetime.now() response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0' response.headers['Pragma'] = 'no-cache' response.headers['Expires'] = '-1' return response |
'개발 > Python' 카테고리의 다른 글
CentOS7 Python + Apache 설정 (0) | 2020.03.22 |
---|---|
다국어 설정(Django) (0) | 2019.05.10 |
Python isinstance Decimal 확인 오류 (0) | 2019.03.20 |
pymssql transaction없이 실행 (0) | 2019.03.05 |
Flask + Beaker 사용 시 "MySQL server has gone away" (0) | 2019.03.05 |