Estoy intentando que un sitio de WordPress funcione en Elasticbeanstalk usando Apache. Cuando lo ejecuto usando nginx, todo funciona bien, pero con Apache aparece el siguiente error:
var/www/html/.htaccess: <IfModule not allowed here, referer: http://www.example.com/
¿Necesito agregar más configuración en elasticbeanstalk o tal vez modificar httpd.conf para solucionar este problema?
Gracias
Respuesta1
También enfrenté el mismo error y lo resolví actualizando manualmente el archivo /etc/httpd/conf/httpd.conf agregando el siguiente contenido:
<Directory "/var/www">
AllowOverride ALL
Require all granted
</Directory>
Y luego reinició el servicio Apache ejecutando el siguiente comando:
sudo systemctl restart httpd