curl -LI不输出Elastic Beanstalk应用程序

我已经构build了一个弹性beanstalk应用程序单容器。 我的docker镜像侦听端口80.我已经configuration负载平衡器的侦听器,以便它监听80和443.我已经从任何地方打开了ec2实例的安全组上的端口80。 我在Route 53上添加了一个logging集,用于redirect到弹性beanstalk域名的域名。 我已经configurationngnix,以便服务器名称是相同的域名,它听80.但curl -LI https://elastic.beanstalk.adress输出什么也没有错误代码。 你能告诉我为什么?

nginx:

server { listen 80; charset utf-8; keepalive_timeout 5; # access_log /var/log/nginx/log/host.access.log main; index index.html; root /src/dist; server_name ***.***.fr; location / { if ($http_x_forwarded_proto != 'https') { rewrite ^ https://$host$request_uri? permanent; } try_files $uri $uri/ /index.html; } #Static File Caching. All static files with the following extension will be cached for 1 day location ~* .(jpg|jpeg|png|gif|ico|css|js)$ { gzip_static on; expires 1d; add_header Cache-Control public; } } 

Dockerrun.aws.json:

 { "AWSEBDockerrunVersion": "1", "Image": { "Name": "__DOCKER_IMAGE__", "Update": "true" }, "Ports": [ { "ContainerPort": "80" } ], "Logging": "/var/log/nginx" } 

Dockerfile:

 FROM ***:nginx COPY . /src WORKDIR /src RUN npm set progress=false RUN npm install ENV NODE_ENV __NODE_ENV__ RUN npm build CMD ["nginx", "-g", "daemon off;"]