Class CanonicalHostRedirectOptions
Configures canonical host and HTTPS redirects.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.Middleware.CanonicalHostRedirect
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public sealed class CanonicalHostRedirectOptions
Properties
| Edit this page View SourceCanonicalization
Gets or sets the canonical host form for the primary apex/www group and inbound aliases.
Declaration
public CanonicalHostMode Canonicalization { get; set; }
Property Value
| Type | Description |
|---|---|
| CanonicalHostMode |
HttpsTargetPort
Gets or sets the optional HTTPS target port.
Declaration
public int? HttpsTargetPort { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
A null value, or an explicit value of 443, produces the canonical implicit HTTPS port and therefore omits a port from the redirect URI. An alternate value is the one HTTPS port used by every HTTPS redirect. Incoming HTTP ports are never copied to an HTTPS target.
PrimaryApexHost
Gets or sets the primary apex host without a port, for example example.com.
Declaration
public string PrimaryApexHost { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RedirectFromHosts
Gets or sets additional inbound host aliases, without ports, that redirect to the selected primary host form.
Declaration
public string[] RedirectFromHosts { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |