Configuring the Server Service
Administrators can customize the service settings of Logi Report Server, such as the ports for accessing Logi Report Server, maximum connections and handlers, SSL connection, and so on.
- In the Logi Report Server console, point to Administration on the system toolbar, and then select Configuration > Service from the drop-down menu. Report Server displays the Service page.
- In the Port text box, type a port as the TCP port on which Logi Report Server listens. The port can be an integer between 1 and 65535. However, numbers less than 1024 are usually reserved by system, and so numbers larger than 1024 are preferred. Logi Report Server uses 8888 as the default port.
- In the Maximum Number of Handlers text box, type the maximum number of connection handlers. A connection is set up between the server-side and a client-side when a request from the client-side reaches the server. The maximum number of requests that can be handled depends on the maximum number of handlers. When there is a limit on the maximum number of connection handlers, if there are no free connection handlers available, a request from the client-side will be blocked. In which case, the request will either be handled after a connection handler has been set free, or be refused when timeout occurs. A connection handler is set free after the server sends a response to a client request.
- In the Maximum Number of Connections text box, type the maximum number of HTTP connections between the server-side and client-side. The maximum number of connections depends on the number of requests that can be handled. It should be larger than the maximum number of handlers. For example, if the maximum number of handlers is 10, and the maximum number of connections is 12, when the eleventh and twelfth requests come, they will be blocked until a handler has been set free. When the thirteenth request comes, it will be refused.
- In the Connection Timeout in text box, type the maximum time in milliseconds for a request from a client-side to be blocked before being refused by the server. A request will be blocked if there are no free connection handlers in the server. However it cannot be blocked forever, and if there are still no free connection handlers after the time specified here (in milliseconds), then the request will be refused back to the client.
- Select Enable Secure Socket Layer Connection if you want to use HTTPS schema to visit the Logi Report Server UI in the standalone mode, then specify the other settings as required. For more information, see Enabling SSL in Standalone Logi Report Server.
Servlet Properties File Name text box displays the full path of the property file of the servlet jet.server.servlet.JRServlet. Assuming that Logi Report Server has been installed to
C:\LogiReport\Server, the servlet property file is
- From the Active Realm drop-down list select the realm that will take effect when the server starts up. A realm is the context of Logi Report Server where the resources and authentication entities reside. There can be multiple realms in the server, but only one is active at runtime. Only the users and resources in the active realm are accessible. Realm names cannot contain the "/" or "\" character.
- Specify whether Logi Report Server listens on all network addresses or just some by selecting the corresponding radio button:
- All Network Addresses
If selected, Logi Report Server listens on all network addresses, which means that all the hosts of the machine are active, and the client-end can connect with any of the hosts of this server.
- Network Address At
If selected, Logi Report Server listens on the specified hosts, and you can specify them by typing the host names or IP addresses. If you want to specify all the host addresses to be active, type * into this field; if you want to specify more than one address to be active, you should separate them using a blank, for example, "leo 126.96.36.199".
Note: The machine that Logi Report Server runs on can be multi-homed (for example, two interface cards have been installed on the machine), if there is more than one IP address. Logi Report Server opens the listening port at host name 'localhost' or at IP address '127.0.0.1' automatically.
The Active Host Address box lists the current active hosts' addresses.
- All Network Addresses
- Select Save to apply the changes.
- Restart Logi Report Server to make the settings take effect.
Logi Report Server supports HTTPS requests in standalone mode. Secure port for HTTPS requests should use different port from non-secure port for HTTP requests. By default, port 6888 is set as the secure port for accessing the server console. The URL for visiting Logi Report Server via HTTPS schema is like this:
https://IP_address or localhost:6888
SSL support is disabled by default. You need to enable it and configure corresponding settings in order to use HTTPS schema to visit Logi Report Server UI. This can be done either in the Logi Report Server console as an administrator or in the server.properties file located in the
To enable the SSL feature via the server console:
- Point to Administration on the system toolbar, and then select Configuration > Service from the drop-down menu, select the Enable Secure Socket Layer Connection option.
- In the Secure Port text box, type a port used for visiting the Logi Report Server console via HTTPS schema. It should be different from the Port for HTTP schema.
- In the Keystore File Path text box, type the location of your trusted keystore file.
- In the Keystore Password text box, type the password used to protect the integrity of the keystore.
- Select the type of keystore to be instantiated from the Keystore Type drop-down list. The valid values are JKS and PKCS12.
- Select the encryption/decryption protocol to be used on the socket from the Keystore Protocol drop-down list. The valid values are SSL and TLS.
- Select the X509 algorithm to use from the Keystore Algorithm drop-down list. This defaults to the Sun implementation (SunX509). For IBM JVMs you should use IbmX509.
- Select Save in the page, then restart Logi Report Server in order for the settings to take effect.
To enable the SSL feature in the server.properties file:
- Open the server.properties file located in the
- Set httpserver.ssl.enable to true.
- Set the other properties starting with httpserver.ssl to meet your requirements.
- Save the file, then restart Logi Report Server in order for the settings to take effect.
- Logi Report does not provide a keystore file since Jinfonet is not a trusted certificate authority and just provides a Keystore File Path option for you to configure the location of your trusted keystore file. There are many trusted authorities that can provide keystore files. Here is an example of creating a keystore file: http://docs.oracle.com/cd/E19509-01/820-3503/ggsxx/index.html.
- Logi Report Server Monitor does not support SSL.
Multiple SSL Certificate Support
When accessing Logi Report Server by domain names via HTTPS, you can apply different SSL certificate for different domain name. A configuration file httpsCertificateMapping.xml is used for defining the mapping relationship between domains and certificate aliases. You should create the file manually and put it in the
The following is a sample of the httpsCertificateMapping.xml file. It defines three groups of mapping relationship: www.a.com maps to certificate alias A, www.b.com maps to certificate alias B, and www.example.com and www.example.org map to certificate alias C.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
See the details about the elements in the file:
- httpsCertificateMapping: The root element.
- certificateMapping: Represents one mapping relationship between certificate alias and domain name.
- description: Optional. The description about the mapping.
- certificateAlias: The alias of the certificate defined in the keystore file.
- domainPattern: Represents a domain name pattern.
When an HTTPS request comes in, Logi Report Server first checks the domain name input in the browser. If the domain name matches domainPattern of a certificateMapping in httpsCertificateMapping.xml, the corresponding cerificateAlias will be used to get the certificate from the keystore, and then the certificate will be applied. If no matched domainPattern is found or no certificate is got, the first certificate in the keystore will be applied.
To apply different certificates to multiple domain names, take the following steps:
- Make sure Logi Report Server is started by JDK 8.
- Enable SSL on Logi Report Server.
- Generate a keystore file which contains multiple entities (each entity contains a certificate and has an alias). Then set the keystore file name as the value of the httpserver.ssl.keystore property in server.properties in
- Create the file httpsCertificateMapping.xml in the
<install_root>\binfolder. In the file specify mapping relationship between domains and certificate aliases defined in the keystore file.
- Restart Logi Report Server. Then when accessing JRepor Server using different domain name, the corresponding certificate will be applied.