Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a configuration file mft.conf under this directory (normally /etc/nginx/conf.d): This will create 2 location ‘/' for the UDMG Admin UI and '/service' for the internal authentication mechanism.
Panel

upstream mftudmg_auth_proxy {
# MFT Auth Proxy Configuration
    server        localhost:5000;
    ip_hash;
    keepalive 10;    
}

server {
    listen        8080;
    server_name   localhost;

    access_log    /var/log/nginx/host.access.log;

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

    location / {
        try_files $uri $uri/ /index.html;
        root      /srv/www/mftudmg;
    }
}

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

...

Panel

# mkdir -p /srv/www/mftudmg

  • Start the NGINX service using the Init system.

...

  • Check that the HTTP server was started and is running, for example with the curl command:
Panel

# curl http://localhost:8080
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.21.6</center>
</body>
</html>

...

Panel

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

include "C:/MFTUDMG/nginx/conf/enabled/*.conf";

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

upstream mftudmg_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 http://mftudmg_auth_proxy/;
    }

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

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

...

  • Check that the HTTP server was started and is running, for example with the curl command:
Panel

C:\>curl.exe http://localhost:8080
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.23.0</center>
</body>
</html>

...