Apache2.4にしたらCakePHP2.7のTOPページ以外がNOT FOUNDになった

Apache2.4にしたらCakePHP2.7のTOPページ以外がNOT FOUNDになった

Apache2.4にしたらCakePHP2.7のTOPページ以外がNOT FOUNDになったので対応しました。

https://normalblog.net/system/apache2-4-forbidden/

↑前回この修正をしたのですが不足がありました。

原因はやはりApacheの設定でした。

<VirtualHost *:80>
 ServerName test.local
 DocumentRoot /home/hase_done/src/test/app/webroot
 ErrorLog /home/hase_done/logs/eroor_log
 CustomLog /home/hase_done/logs/access_log combined

 <Directory /home/hase_done/src/test/app/webroot>
 Options FollowSymlinks Includes
 AllowOverride All
 Require all granted
 </Directory>
</VirtualHost>

AllowOverride Allがないとcakeプロジェクト内の.htaccessが効かない為のようです。

このサンプルが最終形になる事を願って続けます。

Comments

No comments yet. Why don’t you start the discussion?

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です