On 01/03/2021 22:35, Jake Orel wrote:
Hi All, I'm working on deploying tomcat through aws with the use of an elastic load balancer connected to an auto scaling group. I'm running into an issue where the health checks associated with the target group are being sent to my server via IP address and therefore the host isn't seeing it so it can't connect to my appbase resulting in 404 health checks. Since I will be utilizing auto scaling I won't always know what ip address will be used to make the request with and if a health check fails auto scaling will terminate my instance. What I'm looking to do is: if a request comes in from a non listed host (A.E an ip address) I want tomcat to use a default host to respond with. If anyone has any ideas as to where I could find some documentation or if they have already faced this problem any information would be very helpful.
The default Tomcat configuration has a single default host that handles all requests to every host.
If you have multiple hosts, the defaultHost is defined on the Engine. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org