![Apache 2.4 '호스트 필요 없음'이 작동하지만 Apache 오류 로그에 반복되는 AH01753 [authz_host:error]가 표시됩니다.](https://rvso.com/image/1576485/Apache%202.4%20'%ED%98%B8%EC%8A%A4%ED%8A%B8%20%ED%95%84%EC%9A%94%20%EC%97%86%EC%9D%8C'%EC%9D%B4%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%EB%A7%8C%20Apache%20%EC%98%A4%EB%A5%98%20%EB%A1%9C%EA%B7%B8%EC%97%90%20%EB%B0%98%EB%B3%B5%EB%90%98%EB%8A%94%20AH01753%20%5Bauthz_host%3Aerror%5D%EA%B0%80%20%ED%91%9C%EC%8B%9C%EB%90%A9%EB%8B%88%EB%8B%A4..png)
내 호스팅 공급자가 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