0
我被困在Elastic Beanstalk Flask应用程序中,试图解决“403 Forbidden”错误。我已经建立了我的python.config文件,如下:Elastic Beanstalk静态文件夹403错误
option_settings:
aws:elasticbeanstalk:container:python:staticfiles:
"/static/": "/static/"
"/templates/": "/templates/"
commands:
01_set_file_permissions:
command: "chmod 777 /opt/python/current/app/static/"
静态文件夹最初给404,但python.config的静态文件部分固定的。我的问题是我无法获得在服务器上被识别的文件权限。它总是返回一个403错误。请帮忙。
类,但不服务于你的模板文件夹为静态使模板(而不是实际的HTML)提供给任何人在网络上?我想知道你是否打算这么做,如果是的话,为什么? – vlsd