files:
"/etc/httpd/conf.d/myapp.conf":
mode: "000644"
owner: root
group: root
source: "https://example.com/myapp.conf"
option_settings:
aws:elasticbeanstalk:environment:proxy:
ProxyServer: apache
aws:elasticbeanstalk:container:python:
WSGIPath: application.py
container_commands:
set_selinux:
command: "chcon -Rt httpd_sys_content_t /var/app/current"
ignoreErrors: true
请注意,这仅适用于具有Apache服务器的Amazon Linux实例。如果使用的是其他服务器,则需要相应的更改。