我在这个doc后面的.ebextensions / nginx / conf.d / test.conf中添加了nginx test.conf文件
我已确认文件是从日志中复制的。我已经正确地遵循了一切仍然没有添加文件。
# Node.js version: 8.11.1 running on 64bit Amazon Linux/4.5.0
# eb activity logs from my instance
creating: /tmp/deployment/application/.ebextensions/
inflating: /tmp/deployment/application/.ebextensions/https-instance.config
creating: /tmp/deployment/application/.ebextensions/nginx/
creating: /tmp/deployment/application/.ebextensions/nginx/conf.d/
inflating: /tmp/deployment/application/.ebextensions/nginx/conf.d/test.conf
自2018年9月5日起更新
# Some configuration of nginx can be by placing files in /etc/nginx/conf.d
# using Configuration Files.
# http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html
#
# Modifications of nginx.conf can be performed using container_commands to modify
the staged version located in /tmp/deployment/config/etc#nginx#nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
如果您使用的是Node.js容器,则应该阅读本文档:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/nodejs-platform-proxy.html
你链接的是Java容器;)