Jetty (mis)configuration: it wont respond from an

2019-07-20 04:25发布

问题:

I installed jetty on an ubuntu 11 machine by

sudo apt-get install jetty

afterwards I configured the context, the war file and the NO_START variable. All works OK when I test it on the same machine, e.g.

curl http://localhost:8080/

However, when I try to connect from an external machine, it just doesn't answer. I tried this both on a virtual machine on a Win 7 host, and on Amazon EC2.

thanks,

回答1:

Make sure this is not an firewall issue. Maybe 8080 port is closed by firewall.

Also try add line into file /etc/default/jetty :

JETTY_HOST=0.0.0.0

See similar question



回答2:

In EC2 realm, the default open port is usually 80. You need to go to your EC2 console, see the SecurityGroup associated with the machine, and add the port 8080 open for whole word i.e. 0.0.0.0/0. And you should be all set.