Laravel + Apacheメモ

問題

/ へのアクセスは問題なくページが表示されるが、/userのようにパスを指定すると404になる。

設定メモ

# before
DocumentRoot "/var/www/html
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

# after
DocumentRoot "/www/unit/mfham/public"
<Directory "/www/unit/mfham/public">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

publicディレクトリ配下に作られる.htacessを効かす。

終わりに

いつもApacheやNginxでめちゃくちゃ時間使ってしまう。