NGINX Server for Linux
Note |
---|
The following steps require root privilege, be sure that you have the correct access before to continue. |
- Install a NGINX Server (Linux packages).
Run the following command to check the main NGINX configuration file:
Panel |
---|
|
If the NGINX configuration file supports include directives, there will be a line like this:
Panel |
---|
|
- 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 |
---|
|
- Validate that the configuration is correct with the following command:
Panel |
---|
|
- Create the Root directory:
Panel |
---|
|
- Start the NGINX service using the Init system.
Panel |
---|
|
- Check that the HTTP server was started and is running, for example with the
curl
command:
Panel |
---|
|
This error (403) is excepted, since we don't have any asset deployed.
Note |
---|
For configuring HTTPS and HTTP redirection, please refer to the web server documentation. |
NGINX Server for Windows
Note |
---|
The following steps require Administrator privileges, be sure that you have the correct access before to continue. |
- Install NGINX (see nginx for Windows), for example under
C:\UDMG\nginx
.
Run the following command to check the main NGINX configuration file:
Panel |
---|
|
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 |
---|
|
- Create a configuration file
mft.conf
under this directory (normallyC:\UDMG\nginx\conf\enabled
):
Panel |
---|
|
- Validate that the configuration is correct with the following command:
Panel |
---|
|
- Create the Root directory under the NGINX main directory called mft:
Panel |
---|
|
- Start NGINX
Panel |
---|
|
- Check that the HTTP server was started and is running, for example with the
curl
command:
Panel |
---|
|
This error (403) is excepted, since we don't have any asset deployed.
Notes:
- 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 '/'.