You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jake Orel <ja...@gmail.com> on 2021/03/01 22:35:20 UTC
AWS health check problems
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.
Re: AWS health check problems
Posted by Mark Thomas <ma...@apache.org>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org