upstream timed out (110: Connection timed out) with nginx + tomcat + amazon ec2

view full story

http://serverfault.com – On a Amazon EC2 instance we have nginx and tomcat running. Nginx is proxying all requests to tomcat on port 8080 running on the same instance. This worked fine for a day, but then started seeing a lot of "upstream timed out (110: Connection timed out)" errors in the nginx logs and the site was inaccessible. Now tomcat is accessible all right at port 8080. So the problem seems to be somewhere between nginx and tomcat. This is what nginx.conf looks like, worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet- (HowTos)