Apache を使用して Elasticbeanstalk で WordPress サイトを動作させようとしています。nginx を使用して実行するとすべて正常に動作しますが、Apache では次のエラーが発生します。
var/www/html/.htaccess: <IfModule not allowed here, referer: http://www.example.com/
これを修正するには、elasticbeanstalk にさらに設定を追加したり、httpd.conf を変更したりする必要がありますか?
ありがとう
答え1
私も同じエラーに直面しましたが、次の内容を追加して /etc/httpd/conf/httpd.conf ファイルを手動で更新することで解決しました。
<Directory "/var/www">
AllowOverride ALL
Require all granted
</Directory>
次に、次のコマンドを実行して Apache サービスを再起動します。
sudo systemctl restart httpd