Elasticbeanstalk - Apache 및 htaccess

Elasticbeanstalk - Apache 및 htaccess

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

관련 정보