[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] How to Jetty server listen on multiple IP addresses
|
Hi,
This is about Jetty's SSL server bind port.
By default, SSL server listen at all ip address on the host.
Default 0.0.0.0.
Our host have multiple network devices, each device has different ip address.
Security team want we do not want jetty to listen on unnecessary network device(ip address).
Here is ssl.ini file. If I set hostname or ip address, Jetty listen on
that specific address.
$JETTY_HOME/start.d/ssl.ini
# ---------------------------------------
# Module: ssl
# Enables a TLS(SSL) Connector on the server.
# This may be used for HTTPS and/or HTTP2 by enabling
# the associated support modules.
# ---------------------------------------
--module=ssl
### TLS(SSL) Connector Configuration
## Connector host/address to bind to
jetty.ssl.host=`hostname`
Requirement is we want this configuration flexible. For example, we want to
listen on multiple addresses on the interface.
This kind of setting is not valid.
jetty.ssl.host="host_a,host_b,localhost"
How can I enable listen(bind) on multiple host address ?
i.e.
Specify multiple network device to listen on
Specify range of ip address to listen on
Specify hostname+localhost to listen on
---
Iori Honda