Why I get ElasticBeanstalk::ExternalInvocationError?
问题 My app is built on RubyOnRails and its deployed as an elastic beanstalk app using passenger, I am trying to add headers to nginx server and restart it, here is my config file, a script from .ebextensions folder in aws elastic beanstalk: packages: yum: nginx: [] files: "/etc/nginx/conf.d/webapp.conf" : mode: "000644" owner: root group: root content: | server { location /assets { alias /var/app/current/public/assets; gzip_static on; gzip on; expires max; add_header Cache-Control public; }