Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Fins
Fins.Application

Method Fins.Application()->get_my_url()


Method get_my_url

Standards.URI get_my_url(string|void host_header)

Description

gets the url of the current application (not including the context root). this setting is derived from the value of the url parameter in the web section of the application config file, or the xip.io url, if the use_xip_io config setting is enabled in the web section of the config file.

TODO

We should provide a means for non-finserve containers to provide the url.

We should keep a list of "preferred urls" that don't require changing when doing redirects. As it stands now, if you have multiple ports serving the app, as soon as a redirect fires, you'll get switched from that port to the "main port", which you might not be able to access.