Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: NGINX corrections

...

Note: The following steps require root privilegeAdministrator privileges, be sure that you have the correct access before to continue.

  • Install a NGINX Server (see nginx for Windows), for example under C:\MFT\nginx.

  • Run the following command to check the main NGINX configuration file:

Panel

C:\MFT\nginx-1.23.0> nginx> nginx -t
nginx: the configuration file C:\MFT\nginx-1.23.0/conf/nginx.conf syntax is ok
nginx: configuration file C:\MFT\nginx-1.23.0/conf/nginx.conf test is successfully

Create a directory under the configuration folder called "enabled" and add an include directive in the main configuration file inside the http section. For example:

Panel

http {
include mime.types;
default_type application/octet-stream;

include "C:/MFT/nginx-1.23.0/conf/enabled/*.conf";

  • Create a configuration file mft.conf under this directory (normally C:\MFT\nginx-1.23.0\conf\enabled):
Panel

upstream mft_auth_proxy {
 # MFT Auth Proxy Configuration
    server        localhost:5000;
}

server {
    listen        8080;
    server_name   localhost;

    access_log    logs//mft.access.log;

    location /service/ {
      proxy_pass  http://mft_auth_proxy/;
    }

    location / {
        try_files $uri $uri/ /index.html;
        root      mft;
    }
}

  • Validate that the configuration is correct with the following command:
Panel

C:\MFT\nginx-1.23.0> nginx> nginx -t
nginx: the configuration file C:\MFT\nginx-1.23.0/conf/nginx.conf syntax is ok
nginx: configuration file C:\MFT\nginx-1.23.0/conf/nginx.conf test is successfully

  • Create the Root directory under the NGINX main directory called mft:
Panel

C:\MFT\nginx-1.23.0> nginx> mkdir mft

  • Start NGINX
Panel

# start nginx

...

This error (403) is excepted, since we don't have any asset deployed.

NoteNotes: for

  • For configuring HTTPS and HTTP redirection, please refer to the web server documentation (Configuring HTTPS servers).
  • Paths in an NGINX configuration file must be specified in UNIX-style using forward slashes '/'.

UDMG Admin UI

  • Uncompress the tar file for MFT Admin UI, under the directory that we created during the configuration.

Panel

C:\MFT\nginx-1.23.0\mft> tar -x -f mft_admin_ui-<version>.tar

...