[英]AWS ElasticBeanstalk Amazon Linux 2 .platform folder not copying NGINX conf
我一直在使用 Amazon Linux 2 遷移到 ElasticBeanstalk,但在覆蓋默認的 nginx.conf 文件時遇到了問題。 我正在關注反向代理的AL2 文檔。
他們說,“要完全覆蓋 Elastic Beanstalk 默認 nginx 配置,請在 .platform/nginx/nginx.conf 的源包中包含一個配置:”
但是,當我運行部署時,出現錯誤
CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment: Elastic Beanstalk ignored your '.ebextensions/nginx' configuration directory. To include these configuration files, move them to '.platform/nginx'.","timestamp":1598554657,"severity":"WARN"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1598554682,"severity":"ERROR"}]}]}
錯誤的主要部分是
“Elastic Beanstalk 忽略了您的 '.ebextensions/nginx' 配置目錄。要包含這些配置文件,請將它們移動到 '.platform/nginx'。””
我對此感到困惑,因為這是我放置文件/文件夾的地方。
我已經嘗試完全刪除 .ebextensions 文件夾並得到相同的錯誤。
我試過從一個全新的 beanstalk 環境開始,但仍然遇到那個錯誤。 我不明白 beanstalk 是如何管理這個的。
根據評論。
該問題是由nginx
配置文件的重復位置引起的。 這是由於刪除了.ebextensions
的 nginx 默認路徑,而 EB 重新創建了它。
由於這似乎是一個錯誤,因此創建了 AWS 支持勾選。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.