&引用;Http「;指令不允许-未能将java应用程序部署到Amazon bean
我有一个SpringBoot应用程序,我正在Amazon弹性豆茎上部署它。 在我的.ebextensions文件夹中,我有一个文件:01_upload.config,其中包含以下内容:&引用;Http「;指令不允许-未能将java应用程序部署到Amazon bean,java,spring,amazon-web-services,nginx,Java,Spring,Amazon Web Services,Nginx,我有一个SpringBoot应用程序,我正在Amazon弹性豆茎上部署它。 在我的.ebextensions文件夹中,我有一个文件:01_upload.config,其中包含以下内容: container_commands: 01_reload_nginx: test: pgrep nginx >/dev/null 2>&1 command: "service nginx reload" files: "/etc/nginx/conf.d/client_max_
container_commands:
01_reload_nginx:
test: pgrep nginx >/dev/null 2>&1
command: "service nginx reload"
files:
"/etc/nginx/conf.d/client_max_body_size.conf":
mode: "000755"
owner: root
group: root
content: |
http {
client_max_body_size 400M;
}
但部署到AWS失败,原因是:
"http" directive is not allowed in /etc/nginx/conf.d/client_max_body_size.conf
然而,AWS文件
显然,“http”是一个有效的上下文
我的Nginx配置中是否缺少某些内容