部署时aws beanstalk 403错误 [英] aws beanstalk 403 error while deploying

查看:115
本文介绍了部署时aws beanstalk 403错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用亚马逊网络服务弹性beantalk.每次我使用git aws.push时,我的php应用程序都会成功上传,但是,当我单击url时,它会显示

Hi I'm using amazon web services elastic beanstalk. Everytime I use git aws.push, my php application uploads successfully However, when I click on the url it says

Forbidden

You don't have permission to access / on this server.

我的服务器规格:

运行PHP 5.4的64位Amazon Linux 2014.03 v1.0.2

64bit Amazon Linux 2014.03 v1.0.2 running PHP 5.4

是什么原因造成的?谢谢

What would be causing this? Thanks

推荐答案

向Rakesh Bollampally致谢:

Credit to Rakesh Bollampally:

我认为您的应用程序位于文件夹内.如果是这种情况,请更改文档根目录的EBS配置,或者在根目录中包含一个文件以重定向到该子文件夹.要更改文档根目录,请转到EBS控制台>应用程序>配置>软件配置,然后在容器选项"下更改文档根目录"

I think your application is inside a folder. If that is the case, change the EBS configuration for document root or have a file in root to redirect to that sub folder. To Change document root, go to EBS console>Application>configuration>Software configuration and change the "Document root" under "container options"

这篇关于部署时aws beanstalk 403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆