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
Revision:
1
Posted:
05/Oct/2009
Updated:
20/July/2010
Status:
Publish
Types: Reference
|
OverviewThis article is a part of articles on Configuring Visual WebGui application General tab
Settings| Forcing domain and port | Default value | web.config | Description |
|---|
Force Domain
|
| <WebGui>
<ForceDomain Value="MyDomain.com" />
<ForcePort Value="5050" />
<ForceVirtualDirectory Value="MyVirtualDirectory" />
<ForceHTTPS Mode="On" Value="None" />
</WebGui>
| 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)
|
GeneralAll 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 detailThe 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 ConfigurationBefore 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.
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".
Important notice:
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:
- None
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.
- Rewrite
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.
- Redirect
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.
ReferencesForum discussionsIssue Tracker
About the author
Related Articles
|
Ports, Domains, Virtual Dirs
|
|
|
Tags:
Architects, Developers, XML, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|