HardServerUrl
No edit summary
No edit summary
Line 3: Line 3:
In certain situations this is not desired.  
In certain situations this is not desired.  


One example is if you have the application behind a load balancer and the load balancer pings your app with an address that is not the desired server address.
One example is if you have the application behind a load balancer or reverse proxy and the load balancer pings your app with an address that is not the desired server address.


This could lead to your app getting confused to what its true url should be.
This could lead to your app getting confused to what its true url should be.
Line 9: Line 9:
To mitigate this you can create a App_Data/HardServerUrl.xml file with content like this:
To mitigate this you can create a App_Data/HardServerUrl.xml file with content like this:
  <root HardServerUrl="<nowiki>https://theaddressyouwantyourapplicationtohave</nowiki>"></root>
  <root HardServerUrl="<nowiki>https://theaddressyouwantyourapplicationtohave</nowiki>"></root>
When setting the hardserverurl in systems that also use Turnkey you should(possibly) also make sure turnkey use the proper url to mdriven server by setting the [[MDrivenServerOverride]].xml settings.
This functionality is available in builds from 2019-04-17
This functionality is available in builds from 2019-04-17


You can verify that the HardServerUrl is in effect by looking here:
You can verify that the HardServerUrl is in effect by looking here:
[[File:2019-04-17 11h11 17.png|none|thumb|804x804px]]
[[File:2019-04-17 11h11 17.png|none|thumb|804x804px]]

Revision as of 07:11, 31 August 2021

MDriven Server (and TurnkeyServer) adapts by looking at the incoming requests to discern what its own address is.

In certain situations this is not desired.

One example is if you have the application behind a load balancer or reverse proxy and the load balancer pings your app with an address that is not the desired server address.

This could lead to your app getting confused to what its true url should be.

To mitigate this you can create a App_Data/HardServerUrl.xml file with content like this:

<root HardServerUrl="https://theaddressyouwantyourapplicationtohave"></root>

When setting the hardserverurl in systems that also use Turnkey you should(possibly) also make sure turnkey use the proper url to mdriven server by setting the MDrivenServerOverride.xml settings.

This functionality is available in builds from 2019-04-17

You can verify that the HardServerUrl is in effect by looking here:

2019-04-17 11h11 17.png
This page was edited 96 days ago on 02/10/2024. What links here