Configure the Muse Proxy service with NGINX front-end

NGINX is an HTTP and reverse proxy server that can be placed in front of web applications to achieve custom workflows and provide solutions where multiple web applications cannot co-exist with similar specifications.

Specifically the NGINX server can be configured as front-end for Muse Proxy when Muse Proxy cannot be configured to use the standard ports – 80 for HTTP and 443 for HTTPS access. Because there are other applications needing the standard ports as well. Only for this situation, when multiple web applications are hosted on the same server it is recommended to use NGINX, otherwise if Muse Proxy is the only hosted service, it must be accessed directly, without a front-end reverse proxy solution.

Hosting multiple web applications with NGINX as front-end reverse proxy requires assigning a dedicated fully qualified domain name (FQDN) for each application.

In this article we are describing the necessary configurations for NGINX and Muse Proxy only. It is assumed that NGINX and Muse Proxy are already installed, this article does not cover their installations.

Further assumptions:

  1. To exemplify, we consider the Muse Proxy assigned FQDN to be And the server IP – The server OS is a Linux distribution (Debian, Ubuntu, RedHat, CentOS, etc).
  2. Muse Proxy is configured with its default ports – 9797 for HTTP and 9443 for HTTPS.
  3. The wildcard DNS record is enabled for the Muse Proxy assigned FQDN – *
  4. A wildcard SSL certificate is available, thus the certificate and the private key exist on the server. The certificate must contain as SAN entries both * and

Configurations for NGINX

  • In the NGINX configuration file for the Muse Proxy FQDN (e.g. /etc/nginx/sites-available/ define the backend service:

    For each port (80 and 443) contexts make sure the server_name has both values, e.g. * and Sample entries:

  • The content of /etc/nginx/proxy_params refered in the above samples:

  • Increase the timeout value for NGINX in /etc/nginx/nginx.conf, e.g.:

The NGINX service must be reloaded to pick up the configuration changes.

Configurations for Muse Proxy

Some configurations are needed for Muse Proxy as well, in its main configuration file ${MUSE_HOME}/proxy/MuseProxy.xml:

  • Define the external ports of NGINX as follows:

  • Specify the allowed IPs (of the machine itself) that allowed to provide the X-FORWARDED-FOR header value:

  • Make sure the FQDN value is configured in the SERVER_NAMES field, e.g.:

This entry was posted in Blog, Muse Proxy. Bookmark the permalink.

Leave a Reply

Your e-mail is never published nor shared. Required fields are marked *.