AWS Elastic Beanstalk自定义静态文件夹403错误页面
我用:
- AWS Elastic Beanstalk并具有我的资源的静态
public
文件夹,在弹性beanstalk.ebextensions
定义 -
nodejs
并处理那里的错误
当我打开我的网站,并去example.com/public
我看到丑陋的403页面,似乎不由nodejs
服务器处理。 我想服务器以某种方式处理这个请求,看到没有权限,并扔到nodejs
服务器之前403。
我怀疑,如果我决定从.ebextensions
configuration中删除这个方法,并将其定义为nodejs
静态文件夹,它将按我的预期工作。 但有没有一些方法来使用我的自定义403页面是我使用.ebextensions
configuration?
- Elastic Beanstalk和Private GitHub回购
- 在AWS上使用弹性beanstalk部署Nodejs REST API – 错误找不到自定义模块
- 在Elastic Beanstalk上通过.ebextensions安装git
- AWS Elastic Beanstalk:我是否必须使用完整的“/ node_modules”和“/ bower_components”来部署我的应用程序,并编译sass和其他依赖项?
- 终止时弹性Beanstalk实例检测
- Node.js错误:Elastic Beanstalk主机上的EADDRINUSE
- 什么是处理node.js私有模块依赖关系的推荐方式?
- ElasticBeanstalk nodejs.log找不到模块“hogan.js”
- 将yeoman node.js应用程序部署到Elastic Beanstalk