Frontend connectors
The tag Connector specifies the port and the IP address on which the nevisProxy server is listening for incoming TCP connections. Several connectors with different ports may be configured here.
Apache IP-based virtual host
For every Connector tag found, the related Apache configuration for the respective IP-based virtual host is generated. From this point of view, each connector represents an IP-based Apache virtual host.
The Connector tag offers the following configuration attributes:
| Name | Type, usage constraints, defaults | Description |
|---|---|---|
| name | string required, basic connectivity, supports variable replacement default: DNS name of the machine | The attribute 'name' configures the DNS name of the machine. It must be the DNS name that the client resolves. If the attribute 'listen' is not configured nevisProxy is listening on the associated IP address. |
| port | integer required, basic connectivity, supports variable replacement | The attribute 'port' configures the port. It must be the port through which the client is connecting. If the attribute 'listen' is not connected, nevisProxy listens for incoming TCP connections using this port (the one connecting the client). |
| listen | string optional, advanced supports variable replacement | The attribute 'listen' configures the IP address and the port on which nevisProxy is listening. The format is: <ip-address>:<port>. It must only be configured if the IP address or the port of the client connection differs from the settings that are specified by 'name' and/or 'port' (i.e. in case a load balancer is using a different port than nevisProxy). |
| nameVirtualHost | String optional, advancedsupports variable replacement | The 'nameVirtual' attribute may be used instead of the 'listen' attribute if you are configuring name based virtual hosts, where multiple connectors are listening on the same IP address and port. In such a setup, only one of these connectors must use the 'listen' attribute, while all the other connectors use the 'nameVirtualHost' attribute instead. |
| serverAlias | string optional | The attribute serverAlias defines alternate names for a specific host when matching requests to name-virtual hosts. |
Refer to the section Configuring a setup with a load balancer for a detailed sample that clarifies the differences between these attributes.
How to set up a name-based host
The first connector of a name-based group, whereas the group identifier is <ip>:<port> and in this case 1.2.3.4:443 defines the listener.
<Connector
name="the.prime.com"
port="443"
listen="1.2.3.4:443">
...
</Connector>
The additional names no longer set up another listener, because it prevented navajo from starting since the latter can only listen once to a given <ip>:<port>. The recommended configuration is to use "nameVirtualHost" instead of "listen", which omits the listener directive for apache.
<Connector
name="the.second.com"
port="443"
nameVirtualHost="1.2.3.4:443">
...
</Connector>
<Connector
name="the.third.com"
port="443"
nameVirtualHost="1.2.3.4:443">
...
</Connector>
To have separated web.xml for the different names you have to add the following configuration into the "Engine" tag.
<Host name="the.prime.com">
<Context
docBase="/var/opt/nevisproxy/mytest/prime"
entryURI="/"
filePreload="false"
path=""
trailingSlashRedirect="true"
unsecureConnection="allow"
/>
</Host>
<Host name="the.second.com">
<Context
docBase="/var/opt/nevisproxy/mytest/second"
entryURI="/"
filePreload="false"
path=""
trailingSlashRedirect="true"
unsecureConnection="allow"
/>
</Host>
<Host name="the.third.com">
<Context
docBase="/var/opt/nevisproxy/mytest/third"
entryURI="/"
filePreload="false"
path=""
trailingSlashRedirect="true"
unsecureConnection="allow"
/>
</Host>
How to set up a name-based host with wildcard address
Instead of the <ip>:<port> identifiers, it is possible to use a wildcard **:<port>*.
The previous example configuration using wildcards:
<Connector
name="the.prime.com"
port="443"
listen="*:443">
...
</Connector>
The same rule applies here as well, only one listener can be defined. Instead of the listen directive, use nameVirtualHost:
<Connector
name="the.second.com"
port="443"
nameVirtualHost="*:443">
...
</Connector>
<Connector
name="the.third.com"
port="443"
nameVirtualHost="*:443">
...
</Connector>
TLS configuration
The optional SSL tag inside a Connector tag enables/enforces the related TLS configuration for the respective connector.
The system uses the configuration attributes in the SSL tag to generate the mod_ssl attribute with the same name as the respective IP-based host.
This section presents all configuration attributes of the SSL tag.
See Apache Module mod_ssl for a more detailed description of these attributes.
SSLCACertificateFile
Type: string
Usage Constraints: optional, basic connectivity
The attribute SSLCACertificateFile configures the accepted CA certificates used during the TLS handshake (if a client certificate is required).
It is a bundle of CAs, including all of the signing superordinate CAs.
Suggested value using nevisKeybox (slot public and label peer): /var/spool/keybox/public/peer_truststore.pem.
SSLCertificateChainFile
Type: string
Usage Constraints: optional, advanced
Default: not set
The attribute SSLCertificateChainFile configures the file that is a concatenation of the certificate chain of the server certificate (excluding the server certificate itself).
It is sent to the client and allows trust-verification even though the client has only the top trust-anchors to the certificate database.
The SSLCertificateChainFile is deprecated. Use the SSLCertificateFile Apache directive.
SSLCertificateFile
Type: string
Usage Constraints: required, basic connectivity
The attribute SSLCertificateFile configures the certificate file used by nevisProxy for identification with HTTP clients during the TLS handshake.
If SSLCertificateKeyFile is not set, this file also needs to contain the private key nevisProxy is using for server authentication.
It is recommended that this file only contain the certificate without private key.
Suggested value using nevisKeybox (slot public): /var/spool/keybox/public/node_keystore.pem.
SSLCertificateKeyFile
Type: string
Usage Constraints: optional, advanced
Default: not set
The attribute SSLCertificateKeyFile configures the private key file used by nevisProxy during the TLS handshake. The key maybe also be stored along with the certificate (see SSLCertificateFile).
SSLCipherSuite
Type: string
Usage Constraints: optional, advanced
Syntax: SSLCipherSuite [protocol] cipher-spec
Default: ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256
The attribute SSLCipherSuite configures the allowed SSL cipher suites for a connector.
See the apache documentation (https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslciphersuite) for possible values for the protocol and the cipher-spec.
The default cipher suite reflects Nevis's current recommendation for best client compatibility and highest possible security.
If this attribute is configured, its value should be questioned periodically by the security officer.
If RSA is used for key exchange, there might be a vulnerability to the Bleichenbacher attack (https://robotattack.org).
Use the following tool to test your overall SSL configuration and the Bleichenbacher attack: https://testssl.sh/.
To prevent attackers from exploiting this vulnerability in any way, disable the RSA key exchange from the affected client SSL profile.
You do this by adding the expression !RSA to the SSL profile.
However, note that disabling RSA from the SSL profile can affect clients that do not support newer alternatives for key exchange (for example, DHE, ECDHE).
Such legacy clients include, but are not limited to, Microsoft Internet Explorer 6 on any platform, Microsoft Internet Explorer 8 on Windows XP, and potentially non-browser user agents, such as embedded clients.
An SSL renegotiation with an outdated SSL cipher suite can take up seconds. It is therefore recommended using the default value for the SSLCipherSuite attribute.