Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;Http「;指令不允许-未能将java应用程序部署到Amazon bean_Java_Spring_Amazon Web Services_Nginx - Fatal编程技术网

&引用;Http「;指令不允许-未能将java应用程序部署到Amazon bean

&引用;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_

我有一个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_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配置中是否缺少某些内容