API referenceSections

SiteWeb

SiteWeb object

A site's IIS settings (ADR 0061). Lists replace what was there.

  • no other properties
  • default_docs array<string> required

    In order; empty keeps the server's list

    • max items 10
  • directory_browsing boolean required
  • error_pages array<object> required
    • max items 20
    • status integer required
      Allowed values: 400 403 404 405 406 410 412 413 414 415 429 500 501 502 503
    • mode string required

      page: a path of the site, served with the original status; redirect: a full http(s) URL

      Allowed values: "page" "redirect"
    • target string required
  • mime_types array<object> required
    • max items 50
    • ext string required

      .webp

    • type string required

      Empty stops serving the extension

  • virtual_dirs array<object> required
    • max items 20
    • path string required

      URL path, /media

    • folder string required

      Inside the site's public folder, assets/media; must exist

    • app boolean required

      An IIS application

    • own_pool boolean required

      The application gets its own pool (zp-<site>-<path>)

  • redirects array<object> required
    • max items 50
    • from string required
    • match string required

      prefix / is the whole site

      Allowed values: "exact" "prefix"
    • to string required

      A path of the site or a full http(s) URL

    • code integer required
      Allowed values: 301 302 307
    • keep_path boolean required

      prefix only: append the rest of the path

  • canonical string required

    Preferred name; the other must be a verified alias

    Allowed values: "" "www" "bare"
  • hotlink object required
    • no other properties
    • enabled boolean required
    • extensions array<string> required

      jpg, png

    • allowed array<string> required

      Other sites allowed; the site's own names always are

    • allow_empty boolean required

      Allow requests without a Referer

Used by

PUT/api/v1/tenants/{tid}/sites/{id}/web 202Apply the site's IIS settings (ADR 0061)