Php 如何在AWS elastic beanstalk中部署codeigniter?
我是AWS Elastic Beanstalk的新手,因此每次尝试sample.elasticbeanstalk.com/时,我都不知道如何解决403禁用问题,如果itry sample.elasticbeanstalk.com/login未找到404,则无法解决。我的codeigniter在我的wampserver上工作,也在linux服务器上工作。我错过什么了吗?我的控制器文件名的第一个字母已经是大写的 以下是我的访问权限:Php 如何在AWS elastic beanstalk中部署codeigniter?,php,codeigniter,amazon-web-services,amazon-elastic-beanstalk,Php,Codeigniter,Amazon Web Services,Amazon Elastic Beanstalk,我是AWS Elastic Beanstalk的新手,因此每次尝试sample.elasticbeanstalk.com/时,我都不知道如何解决403禁用问题,如果itry sample.elasticbeanstalk.com/login未找到404,则无法解决。我的codeigniter在我的wampserver上工作,也在linux服务器上工作。我错过什么了吗?我的控制器文件名的第一个字母已经是大写的 以下是我的访问权限: <IfModule mod_rewrite.c>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /sample
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|user_assets|tmp|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
我希望有人能帮助我如何在AWS弹性豆茎正确设置codeigniter。谢谢首先要检查上传和部署的zip文件夹结构。codeigniter设置不应位于嵌套文件夹中,即与folder.zip/folder/codeigniter不同。它应该类似于folder.zip/codeigniter
$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';