라벨이 AWS인 게시물 표시

Loadbalancer 붙였더니 ERR_TOO_MANY_REDIRECTS 발생

상황 lets encrypt 인증서로 https 서비스하다가 AWS Loadbalancer로 이중화 시도함. 오류 리디렉션한 횟수가 너무 많습니다. ERR_TOO_MANY_REDIRECTS 원인 nginx 설정에 listen 80 return 301 https://... https로 접속해도 로드밸런서와 내부 인스턴스 간 통신은 80으로 하기 때문에 반복해서 redirect 되었던 것 (20회) 해결 인스턴스의 443 설정은 모두 거두고 TLS는 로드밸런서에게 맡긴다.

Lightsail browser-based SSH log in fail

이미지
 AWS Lightsail Ubuntu 20.04 apt upgrade 이후 browser-based SSH 연결을 사용할 수 없다. Log in failed. If this instance has just started up, try again in a minute or two. CLIENT_UNAUTHORIZED [769] 이거슨... apt upgrade 할 때, ssh 설정이 바뀌면서 발생한 문제다. (아래와 같은 창이 뜨길래 첫 번째 옵션을 선택했었다) 재설정이 번거롭다면, 두 번째를 선택해서 현재 설정을 유지하도록 하자. 끝.

AWS Elastic Beanstalk 에서 static files 설정하는 방법

이미지
  AWS Elastic Beanstalk 에서 static files 설정하는 방법 .config 파일에 아래와 같이 staticfiles 네임스페이스를 추가한다 option_settings:   aws:elasticbeanstalk:container:python:     WSGIPath: prj1.wsgi:application   aws:elasticbeanstalk:environment:proxy:staticfiles:     /static: static 배포 후 인스턴스에서 확인해보면 /etc/nginx/conf.d/elasticbeanstalk 위치에 00_application.conf 밖에 없었는데 01_static.conf 파일이 추가되어있으며, 내용은 이렇다. location /static {     alias /var/app/current/static;     access_log off; } 콘솔의 configuration 메뉴에 안 보이던 Static files 구성이 생겨있다!