Sgrìobh Rémy Maucherat na leanas 10/10/2024 aig 1:07f:

The crawler valve seems to be defined on the Engine, but more
importantly it seems you have no default host ?

So the request is not being mapped and it would return 404 (but the
valve would need some extra null checks).

Rémy

Ahhh of course. Although the engine *did* have a defaultHost, it was referencing a <Host> ("localhost") that had at some point been removed from the server config. I didn't spot that.

The misconfiguration was causing no issues because tomcat is clearly resilient enough to work anyway, as long as users access one of the existing virtual host names. But some search engine or bot was regularly hitting the bare IP address of the server and generating the error I was seeing.

Reinstating a <Host> with name "localhost" caused the error to go away.

Reply via email to