qianjunakasumi commented on issue #4255:
URL: https://github.com/apache/apisix/issues/4255#issuecomment-841655207


   Finally my solution is as follows:
   Add nginx configuration to `http_server_configuration_snippet`
   
   It looks like this:
   ```
   nginx_config:
     http_server_configuration_snippet: |
       if ($host ~* MY_IP_HERE ) {
         return 418;
       }
   ```
   
   And my problem was solved.
   
   The fly in the ointment is that it cannot turn off access log printing...
   
   ---
   
   @tokers @tzssangglass Thanks again for your help!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to