DevOps/Nginx (1) 썸네일형 리스트형 [Nginx] custom error page configuration in reverse proxy server { proxy_intercept_errors on; # reverse proxy 사용 시 해당 옵션 on 필수 error_page 502 /custom-502.html; # 502 에러코드 발생 시 custom-502.html 경로로 location = /custom-502.html { root ${html-path} # custom-502.html 파일 절대경로 internal; }}# tarball installcd ${nginx-home}/sbin./nginx -t # syntax check./nginx -s reload# package installsudo systemctl restart nginx 이전 1 다음