Saya AWS baru. Saya telah membuat instans Amazon Linux EC2. Saya menggunakan CodeDeploy untuk menyebarkan langsung dari GitHub.
Sejauh ini hal ini telah berhasil. Saya telah menginstal httpd php56 pada instance EC2 Linux. Kode berhasil disebarkan dari git.
Framework PHP yang saya gunakan adalah CodeIgniter 2.
Di mesin lokal, saya dapat menjalankan aplikasi dengan baik.
Di EC2, index.php di root muncul sebagai kosong... Saya berasumsi htaccess gagal atau konfigurasi lainnya salah.
Saya telah menambahkan info.php di folder root dan dapat menjalankannya tanpa masalah apa pun. JADI ini bukan masalah PHP.
ini httpd.conf
# Further relax access to the default document root:
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
Di localhost, saya melihat /assets/ return 403 yang saya inginkan. Namun di EC2 /assets/ kembalikan daftar direktori yang BUKAN yang saya inginkan.
Mudah-mudahan itu memberi gambaran tentang apa yang mungkin menjadi masalahnya.
Tidak yakin harus melihat apa lagi.
Terima kasih sebelumnya,
rik