Configuring HTTP / HTTPS Port(s)


Default Port Settings

The default HTTP port is set in the jetty/etc/jetty-http.xml file

<Set name="port"><Property name="jetty.http.port" deprecated="jetty.port" default="8080"/></Set>

The HTTPS / SSL port is in the jetty/etc/jetty-ssl.xml file

<Set name="port"><Property name="jetty.ssl.port" deprecated="ssl.port" default="8443"/></Set>

Actual Port Settings

The actual port is set in the jetty/start.ini file.

For HTTP, enable the HTTP module and set the HTTP port

--module=http
jetty.http.port=8080

For HTTPS / SSL, enable the HTTPS module and set the SSL port

--module=https
jetty.ssl.port=443

Also, ports can be passed on the command line using the same properties from the start.ini.

For example:
java -jar start.jar -Djetty.ssl.port=443