【发布时间】:2018-10-13 16:07:30
【问题描述】:
我想在 Amazon Elastic Beanstalk 上使用 ebextension 配置 nginx 配置,
conf的内容如下:
files:
"/etc/nginx/conf.d/custom-nginx-proxy.conf" :
mode: "000755"
owner: "root"
group: "root"
content: |
client_max_body_size 60M;
contatiner_commands:
reload_nginx:
command: "sudo service nginx reload"
但总是得到关于内容的错误,
nginx: [emerg] 未知指令“files:”在 /var/elasticbeanstalk/staging/nginx/conf.d/custom-nginx-proxy.conf:7
我把这个文件放在
ROOT.war
|- ROOT/
|- .ebextensions
|- nginx
|- conf.d
|- custom-nginx-proxy.conf
|- Others content
【问题讨论】:
标签: amazon-web-services nginx amazon-elastic-beanstalk ebextensions