Apache2.4でドはまりした(Forbidden  You don’t have permission to access /test.txt on this server.)

Apache2.4でドはまりした(Forbidden You don’t have permission to access /test.txt on this server.)

Apache2.4でドはまりしました。

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

結論としてapache2.4で書き方が変わっていたみたいでした。

<VirtualHost *:80>
    ServerName test.com
    DocumentRoot /home/app/webroot
    <Directory /home/app/webroot>
        Options FollowSymLinks
        AllowOverride All
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName test.com
    DocumentRoot /home/app/webroot
    <Directory /home/app/webroot>
        Require all granted
    </Directory>
</VirtualHost>

とするだけでした。完

追記

完じゃないよ。それだとTOPページ以外表示できないでしょうが。まだ子供が食べてるでしょうが!

TOPページ以外NOT FOUNDになったので以下を追加対応しました。

https://normalblog.net/system/apache2-4-cakephp2-7/

1 Comment

コメントを残す

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