Apache AWS elasticbeanstalk:HTTPD2.4使用带有mod_wsgi的2.2配置

Apache AWS elasticbeanstalk:HTTPD2.4使用带有mod_wsgi的2.2配置,apache,amazon-web-services,deployment,amazon-elastic-beanstalk,Apache,Amazon Web Services,Deployment,Amazon Elastic Beanstalk,我在django应用程序中使用elasticbeanstalk。但当我尝试使用以下方式设置静态/媒体文件时: aws:elasticbeanstalk:container:python:staticfiles: /static/: static/ 为静态文件生成的wsgi.conf配置为: Alias /static/ /opt/python/current/app/static/ <Directory /opt/python/current/app/static/>

我在django应用程序中使用elasticbeanstalk。但当我尝试使用以下方式设置静态/媒体文件时:

aws:elasticbeanstalk:container:python:staticfiles:
    /static/: static/
为静态文件生成的wsgi.conf配置为:

  Alias /static/ /opt/python/current/app/static/
  <Directory /opt/python/current/app/static/>
    Order allow,deny
    Allow from all
  </Directory>
Alias/static//opt/python/current/app/static/
命令允许,拒绝
通融
但是,这不是Apache 2.4.16使用的配置。我相信它使用了
要求所有授予的
而不是上述内容


如果我做错了什么,请告诉我。我对EBS非常陌生。

如果他们设置了适当的兼容性模块和指令,那么在Apache 2.4中,旧的操作方式仍然有效。Hi@GrahamDumpleton,我很难相信我收到了您的回复。我关注你的博客已经有一段时间了,它真的很有用。回到问题上来,我认为实例缺少
mod\u access\u compat
模块,这导致了这个问题。我会尝试添加它,看看是否一切正常。再次感谢!:)如果他们设置了适当的兼容性模块和指令,那么在Apache2.4.Hi@GrahamDumpleton中仍然可以使用旧的方法,我很难相信我收到了您的回复。我关注你的博客已经有一段时间了,它真的很有用。回到问题上来,我认为实例缺少
mod\u access\u compat
模块,这导致了这个问题。我会尝试添加它,看看是否一切正常。再次感谢!:)