2.5.  Test Center as Backend Services

Table of Contents

2.5.1. Apache Reverse Proxy Example
2.5.2. Hitch TLS Proxy

This section shows examples of how to integrate Test Center in an existing Web service setup and/or to enable https access to Test Center. The Test Center TCP listen port can be configured in the application.ini file located in config directory. The option is ListenPort. Its value may also be a unix domain socket, e.g. ListenPort=unix:/tmp/testcenter.

2.5.1.  Apache Reverse Proxy Example

Here is an example of Reverse Proxy using an Apache Web server. The modules mod_proxy and mod_proxy_http must be enabled

cd mods-enabled/
ln -s ../mods-available/proxy.load .
ln -s ../mods-available/proxy_http.load .

The following VirtualHost configuration forwards requests to Testcenter's default port 8800 on the same host:

<VirtualHost _default_:443>
        ProxyPass        / http://localhost:8800/
        ProxyPassReverse / http://localhost:8800/
        ProxyPreserveHost On
        ProxyRequests Off
        SSLEngine on
        SSLCertificateFile    your-crt-file.crt
        SSLCertificateKeyFile your-key-file.key
</VirtualHost>

2.5.2.  Hitch TLS Proxy

Below is a configuration of hitch tool, which can be used as an SSL frontend for Test Center.

frontend = {
    host = "*"
    port = "443"
}
backend = "[127.0.0.1]:8800"
pem-file = "your-pem-file.pem"