StaticWebsite interface

The static website properties for blob storage.

Properties

defaultIndexDocumentPath

The absolute path where the default index file is present. This absolute path is mutually exclusive to "indexDocument" and it is case-sensitive.

enabled

Indicates whether static website support is enabled for the specified account.

errorDocument404Path

The absolute path to a webpage that Azure Storage serves for requests that don't correspond to an existing file. The contents of the page are returned with HTTP 404 Not Found. Only a single custom 404 page is supported in each static website.

indexDocument

The webpage that Azure Storage serves for requests to the root of a website or any subfolder (for example, index.html). The value is case-sensitive.

Property Details

defaultIndexDocumentPath

The absolute path where the default index file is present. This absolute path is mutually exclusive to "indexDocument" and it is case-sensitive.

defaultIndexDocumentPath?: string

Property Value

string

enabled

Indicates whether static website support is enabled for the specified account.

enabled: boolean

Property Value

boolean

errorDocument404Path

The absolute path to a webpage that Azure Storage serves for requests that don't correspond to an existing file. The contents of the page are returned with HTTP 404 Not Found. Only a single custom 404 page is supported in each static website.

errorDocument404Path?: string

Property Value

string

indexDocument

The webpage that Azure Storage serves for requests to the root of a website or any subfolder (for example, index.html). The value is case-sensitive.

indexDocument?: string

Property Value

string