.ebextensions
01-configure-nginx.config
files:
"/etc/nginx/conf.d/custom.conf":
mode: "000755"
owner: root
group: root
content: |
server {
listen 80;
server_name alicerabbi.team;
# Redirect to www.alicerabbit.team
return 301 $scheme://www.alicerabbit.team$request_uri;
}
server {
listen 80;
server_name www.alicerabbit.team;
location / {
proxy_pass http://alice-web-prod-env.ap-northeast-2.elasticbeanstalk.com;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
'BE > AWS' 카테고리의 다른 글
[ AWS ] EC2 profile 생성 (0) | 2023.12.12 |
---|---|
[ AWS ] AWS 구입 가능한 도메인 목록 (0) | 2023.09.26 |
[ AWS ] 도메인 연결 (0) | 2023.09.26 |
[ AWS ] RDS 인증서 갱신 (0) | 2023.09.18 |
[ AWS ] VPC 환경에서 EC2 인스턴스 생성 (0) | 2023.09.14 |