Product Family: Act!
Product: Act! Premium (access via web)
Version: v20.1 and later
The location of the Web API is controlled by the
<add key="WebAPIBaseURL" value="" />value in the Web.config file. If the value is left blank, the default value of <scheme>://<server>/act.web.api/ will be used, where scheme (http/https) and server come from the http requests made to Act! Premium for Web.
If you need to override this default, you can specify a full URL for this value (ex: http://myapiserver/act.web.api). However, it is important to note that if you specify a domain other than the one used by this instance of APFW, you will need to add a CORS entry into the web.config file of that act.web.api instance allowing requests from this server (See https://www.w3.org/TR/cors/ for more information). Alternatively, if a value is entered here that does not contain http or https, it will be appended to <scheme>://<server> exactly as it is entered. If you opt for this method, be sure to include leading and trailing forward slashes. (ex: "/myAPISubDirectory/act.web.api/")
Follow the steps below to move the Act! Premium Web API to a non-default location:
- Browse to C:\Program Files (x86)\ACT\Act for Web\APFW
- Locate Web.config and open it in your preferred plaintext editor (ex: Notepad, Notepad ++)
- Locate the following line in the Web.config file:
<add key="WebAPIBaseURL" value="" />
- Change the line to the following:
<add key="WebAPIBaseURL" value="http://myapiserver/act.web.api/">
Note: Replace “myapiserver” with your Web API server details
- Save the web.config file and close it