Configuring - General Tab - Forcing Domain and Port
Categories: Ports, Domains, Virtual Dirs
Tags: Architects, Developers, XML, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
This article is a part of articles on Configuring Visual WebGui application General tabSettings
|Forcing domain and port||Default value||web.config||Description|
<ForceDomain Value="MyDomain.com" />
<ForcePort Value="5050" />
<ForceVirtualDirectory Value="MyVirtualDirectory" />
<ForceHTTPS Mode="On" Value="None" />
|Force application to use specific domain|
|Force Port||Force application to use specific port|
|Force Virtual Directory||Force application to use specific virtual directory|
|Force HTTPS||Mode="Off" Value="None"||Force application to use SSL (HTTPS)|
All those Force directives make your application setting the base url of each rendered html page to a certain domain, port or protocol as you desire.More detail
The IIS is not aware of the proxy server (that is in the way), when responding to the client. As a result, the IIS responds, telling the client to make requests to the port of the IIS server and not the proxy.The Force... settings are used, to force the IIS to tell the client machine to make requests to it using a user-defined URI of the proxy server that we configure using a domain, set by ForceDomain + the virtual directory, set by ForceVirtualDirectory + the port, set by ForcePort.The reason being that the proxy server is actually the one that is externally exposed.ForceHTTPS Configuration
Before Visual WebGui v6.4 Beta3, the "ForceHTTPS" XML element of the Web.config, only had a "Mode" attribute that allowed either "On" or "Off" as values.ReferencesForum discussionsIssue Tracker
The "ForceHTTPS" element is located inside the "WebGUI" XML section.
In Visual WebGui v6.4 Beta3 we added a "Value" attribute to the "ForceHTTPS" XML element that has three different options: "None", "Redirect" and "Rewrite".
When you wish to use one of those options of the "Value" attribute, you must first remove the "Mode" attribute from the "ForceHTTPS" element, as the "Mode" attribute overrides the "Value" attribute.
These are the meanings of the different values:
The server will not allow use of HTTPS communication and will also provide the client with an HTTP (not HTTPS) URL to send requests with.
The server will not use HTTPS to communicate with the client but will provide the client with an HTTPS (not HTTP) URI to send requests with.
The server will use HTTPS to communicate with the client and will provide the client with an HTTPS (not HTTP) URI to send requests with.
About the author
Ports, Domains, Virtual Dirs
Architects, Developers, XML, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later