Quantcast
Channel: Active questions tagged apache-log-files - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 38

Forcing HTTP error 421 on all HTTP2 requests

$
0
0

I have Apache 2.4 setup on my server serving webpages with the HTTP 1.1 protocol. The system is currently not ready to handle HTTP2 (please dont ask why).

When reviewing server logs, I saw a few of these requests in my access_log

PRI * HTTP/2.0  400  18  -  -

So I want to prevent my server from being worn down with such requests from google.I look here on google: https://developers.google.com/search/docs/crawling-indexing/googlebot and it states I should issue HTTP error code 421 to solve my problem. My server produces error code 400, not 421.

Rather than try to figure out how to make an apache module, is there some setting I can use in httpd.conf or some premade module I can use to make all HTTP2 requests issue error 421 so my logs don't get excessively hammered?


Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>