Laravelをサーバーにあげたいのですが、403エラーで表示することができません。
エラー内容は下記です。
AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/html/laravel/public/
同じエラーの人の解決方法をみて、このエラーの対処方法は、FollowSymLinksを有効にすることと、権限をec2-userに変えること書いてあるのでそれを参考にしたのですが、
FollowSymLinksはもともと有効で、特にエラーになる原因が思いつきません。
参考までに下記が、設定内容です。
httpsの環境で稼働させることを想定しています。
conf
1<IfModule mod_ssl.c> 2<VirtualHost *:443> 3 ServerAdmin webmaster@localhost 4 DocumentRoot /var/www/html/laravel/public 5 ServerName "domain" 6 7 <Directory /var/www/html/laravel/public> 8 Options Indexes FollowSymLinks MultiViews 9 AllowOverride All 10 Require all granted 11 12 Options Includes 13 AddType text/html .shtml 14 AddOutputFilter INCLUDES .shtml 15 </Directory> 16</VirtualHost> 17</IfModule>
大雑把な質問で恐縮ですが、
何から、探っていけば良いでしょうか?
構成
laravelにインストールしています。
/var/www/html/laravel/
ドキュメントルートは、上記の通りpublicディレクトリ

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/07 14:11