Elastic Beanstalk的nginx配置不起作用

问题描述 投票:2回答:1

我在这个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/
amazon-web-services nginx amazon-ec2 elastic-beanstalk
1个回答
2
投票

如果您使用的是Node.js容器,则应该阅读本文档:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/nodejs-platform-proxy.html

你链接的是Java容器;)

© www.soinside.com 2019 - 2024. All rights reserved.