SiteWeb
SiteWeb objectA site's IIS settings (ADR 0061). Lists replace what was there.
- no other properties
default_docsarray<string> requiredIn order; empty keeps the server's list
- max items 10
directory_browsingboolean requirederror_pagesarray<object> required- max items 20
statusinteger requiredAllowed values:400403404405406410412413414415429500501502503modestring requiredpage: a path of the site, served with the original status; redirect: a full http(s) URL
Allowed values:"page""redirect"targetstring required
mime_typesarray<object> required- max items 50
extstring required.webp
typestring requiredEmpty stops serving the extension
virtual_dirsarray<object> required- max items 20
pathstring requiredURL path, /media
folderstring requiredInside the site's public folder, assets/media; must exist
appboolean requiredAn IIS application
own_poolboolean requiredThe application gets its own pool (zp-<site>-<path>)
redirectsarray<object> required- max items 50
fromstring requiredmatchstring requiredprefix / is the whole site
Allowed values:"exact""prefix"tostring requiredA path of the site or a full http(s) URL
codeinteger requiredAllowed values:301302307keep_pathboolean requiredprefix only: append the rest of the path
canonicalstring requiredPreferred name; the other must be a verified alias
Allowed values:"""www""bare"hotlinkobject required- no other properties
enabledboolean requiredextensionsarray<string> requiredjpg, png
allowedarray<string> requiredOther sites allowed; the site's own names always are
allow_emptyboolean requiredAllow requests without a Referer
Used by
| PUT | /api/v1/tenants/{tid}/sites/{id}/web 202 | Apply the site's IIS settings (ADR 0061) |