Elasticbeanstalk - Apache e htaccess

Elasticbeanstalk - Apache e htaccess

Estou tentando fazer com que um site WordPress funcione no Elasticbeanstalk usando o Apache. Quando executo usando o nginx, tudo funciona bem, mas com o apache, recebo o seguinte erro:

var/www/html/.htaccess: <IfModule not allowed here, referer: http://www.example.com/

Preciso adicionar mais alguma configuração no elasticbeanstalk ou talvez alterar o httpd.conf para corrigir isso?

Obrigado

Responder1

Também enfrentei o mesmo erro e resolvi-o atualizando manualmente o arquivo /etc/httpd/conf/httpd.conf adicionando o seguinte conteúdo:

<Directory "/var/www">
    AllowOverride ALL
    Require all granted
</Directory>

E reinicie o serviço Apache executando o seguinte comando:

sudo systemctl restart httpd

informação relacionada