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:
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.
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.
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:
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.
- 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. - Open the instance.conf file with your Notepad.
- Double-check the first lines:
- Make sure the port is correct (443 is by default but you could have a different one depending on what you chose)
- Make sure the "server_name" (Hubshare.client.com in this example) is your Hubshare URL.
- 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
