Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Hubshare On-Premise: The page isn't redirecting properly (Too many redirects)

Last updated on 9 December 2024 · 2 min read

Admin
M-Files Hubshare

Overview

When installing Hubshare On-premise, we do use Nginx as our proxy to redirect all the requests and make the server accessible via the known URL. Sometimes, you might have issues with the environment where the nginx proxy is not able to redirect properly to your Hubshare instance.

This article will show you how to identify that issue and solve it.

If you try to access Hubshare and get this error:

image.png

You might be in the situation mentioned above.

In Hubshare, when we access the URL of the instance, we go through nginx, and it redirects us to that Instance and calls the Hubshare App. If there are no results, we fall back.

The image below explains the situation.

image.png

You can check the nginx logs to confirm that. The logs are typically located in this path:

C:ginxginx-x.xx.x\logs

Where x.xx.x is the nginx version you currently have on your server.

image.png

If you have entries in the "access.log" file this means you are in the fallback scenario. 

Here is how it could look like if you open it:

image.png

The URL part is empty which is the main symptom of this issue.

Note: This situation is caused by a network issue in your environment and not caused by an error during the Hubshare installation.

Solution

To solve this issue where the redirect does not work properly, you will need to double-check and edit the nginx config file and see if the port and the URL are correct.

  1. You will need to go to this path:
    C:ginxginx-x.xx.x\conf\conf.d\instances\Default
    Where x.xx.x is the nginx version you currently have on your server.
    Note: the instance name could change depending on what you have chosen during the installation, here is the default path with default instance name.
  2. Open the instance.conf file with your Notepad.
  3. Double-check the first lines:image.png
  4. Make sure the port is correct (443 is by default but you could have a different one depending on what you chose)
  5. Make sure the "server_name" (Hubshare.client.com in this example) is your Hubshare URL.
  6. Save the file and try to access Hubshare.

If you still encounter an issue, please gather the logs (path shown previously in the article) and send them to M-Files Support while following this process: /article/How-to-Send-Files-via-CryptShare-Portal

Still need help?

On this page