Using Proxy Setup with M-Files Web
These instructions tell you how to set up an environment with a reverse proxy and an application server. In this setup, there is a separate proxy server for IIS (Internet Information Services) and another server for the M-Files application.
Configuring the application server
If you do not use separate DNS names for your vaults (all vaults are accessed with the same address), you can skip this section.
To configure the server where M-Files is installed:
-
Use Registry Editor to add this registry setting:
Key HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Server\Common Value name VaultDNSConfig Value type REG_MULTI_SZ Value https://<proxy server address>={<GUID of the vault to use>} For example: https://proxyserver.mycompany.com={F565EDFE-939E-4507-B078-D06902888C98}
Description Adds a mapping between the vault and the proxy server. -
Add this registry key to let each vault control the default web client:
Key HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Server\Common Value name NewWebAsDefault Value type REG_SZ Value False Description New web is not the default client for this server. Each vault can control the default web client. - Restart the M-Files Server service.
- Optional: Set M-Files Web as the default client for the vault (see Changing the default web client vault-specifically).
- Restart the M-Files Server service on the proxy server.
Configuring the proxy server
Note: If you want to set up only the classic M-Files Web, only the first step is necessary.
To configure the server used as the reverse proxy:
-
Set up the proxy server with the instructions given in Configuring the Classic M-Files Web on a Separate Server Computer.
During the setup, make note of this information:
- M-Files Server must be the same version as the one installed on the application server.
- No vaults can be attached to the M-Files Server installation on the proxy server.
- If you have many vaults with separate DNS names, the IIS (Internet Information Services) site on the proxy server must respond to all of them publicly. In other words, the IIS site must have the necessary bindings.
- Open M-Files Admin.
-
Connect to the M-Files Server instance of the proxy computer.
In most situations, M-Files Admin and M-Files Server are installed on the same proxy computer. This means that you can use M-Files Admin to connect to M-Files Server locally.IIS must run on the same proxy computer as the M-Files Server instance to which you are connected.
-
Configure M-Files Web with the instructions in Setting Up M-Files Web or Setting Up Both Web Clients and M-Files Mobile.
During the configuration, make note of these substeps:
- Use M-Files Admin to connect to M-Files Server on the application server.
- Open the Document Vault Advanced Properties dialog and add the M-Files Web URL (or URLs) according to the IIS bindings.
- After 20 to 30 seconds, enter your proxy website address (in this example, https://proxyserver.mycompany.com) in a browser and make sure that M-Files Web opens correctly.