How to make Jetty webserver listen on port 80?

Posted by Jonas on Ask Ubuntu See other posts from Ask Ubuntu or by Jonas
Published on 2011-03-18T13:14:44Z Indexed on 2011/03/18 16:18 UTC
Read the original article Hit count: 332

Filed under:

I would like to use Jetty as a webserver.

I have edited the configuration file at /etc/default/jetty and set:

# change to 0 to allow Jetty start
NO_START=0

# Listen to connections from this network host
# Use 0.0.0.0 as host to accept all connections.
JETTY_HOST=0.0.0.0

Now I can reach the Jetty webserver at http://192.168.1.10:8080 but I would like to have Jetty listening on port 80.

I have tried this setting in the same configuration file:

# The network port used by Jetty
JETTY_PORT=80

and then restart Jetty with sudo service jetty restart but it doesn't work.

How can I change so that the Jetty webserver is listening on port 80?

© Ask Ubuntu or respective owner

Related posts about webserver