仮想ホストでの処理Laravelルートが正常に動作していないため、public/index.phpにアクセスできますが、ルーティングは有効ではありません。仮想ホストがlaravelで動作していない5.1
<VirtualHost *:80>
ServerName laravel.dev
ServerAdmin [email protected]
DocumentRoot /var/www/mylaravel/public/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/mylaravel/public/>
Options +Indexes +FollowSymLinks +MultiViews
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
この設定後、特定のルートの結果を取得する代わりに、404エラーの通常のphpスタイルを表示します。