Apache 2.4 '호스트 필요 없음'이 작동하지만 Apache 오류 로그에 반복되는 AH01753 [authz_host:error]가 표시됩니다.

Apache 2.4 '호스트 필요 없음'이 작동하지만 Apache 오류 로그에 반복되는 AH01753 [authz_host:error]가 표시됩니다.

내 호스팅 공급자가 Apache 2.2에서 Apache 2.4로 전환된 후 문제가 발생했습니다.

내 .htaccess에 이러한 Apache 2.2 규칙이 있습니다.

order allow,deny
    deny from domain.tld
    deny from 1.2.3.4
allow from all

그 규칙은 Apache 2.4에서 500년대까지 갔기 때문에 Apache 2.4 매뉴얼과 웹을 연구하고 마침내 생각해냈습니다.

<RequireAll>
Require all granted
    Require not host domain.tld
    Require not ip 1.2.3.4
</RequireAll>

나는 이것을 내 자신의 IP 주소와 도메인으로 테스트했고 작동했습니다. Apache는 403을 제공합니다. 그러나 Apache 오류 로그는 다음과 같습니다.

<Thu Dec 06 20:16:51.641853 2018> <authz_host:error> <pid 1347506:tid 140612011235072> <client 86.90.6.41:42035> AH01753: access check of 'domain.tld' to /index.html failed, reason: unable to get the remote host name

거기 무슨 말이에요? 또한 내 htaccess에 '호스트가 필요하지 않음' 규칙이 하나 더 있기 때문에 내 htaccess의 모든 항목에 대해 이 'AH017053' 오류가 반복됩니다. 방문자가 요청한 모든 파일에 대해 이 작업을 수행하므로 index.html 이후 'index.css' 등에 대해 이 오류가 반복됩니다.

이 오류가 사라졌으면 좋겠지만 어떻게 해야 할지 난감합니다. 또한 테스트 상황에서 Apache가 여전히 내 IP 주소와 도메인 이름을 차단하고 있다면 이 오류는 무엇을 말하려는 걸까요?

나는 읽었다https://httpd.apache.org/docs/2.4/mod/mod_authz_host.htmlApache가 'AH017053'에 대해 불평할 때 어딘가에서 이를 찾아볼 수 있어야 하지 않을까요?

답변1

여기서 답을 찾았습니다https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html

대신에
Require not host domain.tld

이중 역방향 조회 시도가 중지됩니다.
Require not forward-dns domain.tld

그 이유는 여기에 설명되어 있습니다https://httpd.apache.org/docs/2.4/mod/core.html#hostnamelookups

관련 정보