Apache 2.4 'require host not' works but gives repeated AH01753 [authz_host:error] in apache error log











up vote
0
down vote

favorite












Something is bothering me after my hosting provider went from Apache 2.2 to Apache 2.4.



I had these Apache 2.2 rules in my .htaccess



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


Those rules went to 500's with Apache 2.4 so I've studied the Apache 2.4 manual and the web and finally came up with



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


I tested this with my own IP address and domain and this works, Apache gives a 403. 
However, the Apache error log is coming up with



<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


What is it saying there? Also, because I have more the one 'Require not host' rule in my htaccess, it is repeating this 'AH017053' error for every entry in my htaccess. It is doing so for every file requested by the visitor, so after index.html, it repeats this error for 'index.css' and such.



I would like this error to go away but I am at my wits' end how to. Also, I wonder, if Apache still is blocking my own IP address and domain name in a test situation, what is this error trying to say?



I've read https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html and I am not sure, when Apache complains about 'AH017053', shouldn't I be able to look that up somewhere?










share|improve this question




























    up vote
    0
    down vote

    favorite












    Something is bothering me after my hosting provider went from Apache 2.2 to Apache 2.4.



    I had these Apache 2.2 rules in my .htaccess



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


    Those rules went to 500's with Apache 2.4 so I've studied the Apache 2.4 manual and the web and finally came up with



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


    I tested this with my own IP address and domain and this works, Apache gives a 403. 
    However, the Apache error log is coming up with



    <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


    What is it saying there? Also, because I have more the one 'Require not host' rule in my htaccess, it is repeating this 'AH017053' error for every entry in my htaccess. It is doing so for every file requested by the visitor, so after index.html, it repeats this error for 'index.css' and such.



    I would like this error to go away but I am at my wits' end how to. Also, I wonder, if Apache still is blocking my own IP address and domain name in a test situation, what is this error trying to say?



    I've read https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html and I am not sure, when Apache complains about 'AH017053', shouldn't I be able to look that up somewhere?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Something is bothering me after my hosting provider went from Apache 2.2 to Apache 2.4.



      I had these Apache 2.2 rules in my .htaccess



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


      Those rules went to 500's with Apache 2.4 so I've studied the Apache 2.4 manual and the web and finally came up with



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


      I tested this with my own IP address and domain and this works, Apache gives a 403. 
      However, the Apache error log is coming up with



      <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


      What is it saying there? Also, because I have more the one 'Require not host' rule in my htaccess, it is repeating this 'AH017053' error for every entry in my htaccess. It is doing so for every file requested by the visitor, so after index.html, it repeats this error for 'index.css' and such.



      I would like this error to go away but I am at my wits' end how to. Also, I wonder, if Apache still is blocking my own IP address and domain name in a test situation, what is this error trying to say?



      I've read https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html and I am not sure, when Apache complains about 'AH017053', shouldn't I be able to look that up somewhere?










      share|improve this question















      Something is bothering me after my hosting provider went from Apache 2.2 to Apache 2.4.



      I had these Apache 2.2 rules in my .htaccess



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


      Those rules went to 500's with Apache 2.4 so I've studied the Apache 2.4 manual and the web and finally came up with



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


      I tested this with my own IP address and domain and this works, Apache gives a 403. 
      However, the Apache error log is coming up with



      <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


      What is it saying there? Also, because I have more the one 'Require not host' rule in my htaccess, it is repeating this 'AH017053' error for every entry in my htaccess. It is doing so for every file requested by the visitor, so after index.html, it repeats this error for 'index.css' and such.



      I would like this error to go away but I am at my wits' end how to. Also, I wonder, if Apache still is blocking my own IP address and domain name in a test situation, what is this error trying to say?



      I've read https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html and I am not sure, when Apache complains about 'AH017053', shouldn't I be able to look that up somewhere?







      apache-http-server htaccess






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 7 at 1:34









      Scott

      15.5k113889




      15.5k113889










      asked Dec 7 at 1:11









      user970696

      11




      11



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1381510%2fapache-2-4-require-host-not-works-but-gives-repeated-ah01753-authz-hosterror%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1381510%2fapache-2-4-require-host-not-works-but-gives-repeated-ah01753-authz-hosterror%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Index of /

          Tribalistas

          Filisteus