{
  "server": {
    "port": "80",
    "dir": "www/",
    "exitOnError": true,
    "ssl": {
      "enabled": false,
      "key": "",
      "cert" : ""
    }
  },
  "page": {
    "default": "index.html",
    "script": "node.js",
    "error": {
      "401": "page/error/401.html",
      "404": "page/error/404.html",
      "500": "page/error/500.html"
    }
  },
  "url": {
    "/not-here.html": {
      "alias": "test.html"
    },
    "/alias-recursion-1.html": {
      "alias": "alias-recursion-2.html"
    },
    "/alias-recursion-2.html": {
      "alias": "alias-recursion-1.html"
    },
    "/first/*": {
      "alias": "/second/*"
    },
    "/protected/*": {
      "authentication": {
        "login": "admin",
        "password": "123456789"
      }
    },
    "/protected-file.html": {
      "authentication": {
        "login": "admin",
        "password": "secure"
      }
    }
  },
  "methods": {
    "allowed": ["OPTIONS", "GET", "POST", "HEAD", "PUT", "PATCH", "DELETE", "COPY", "LINK", "UNLINK", "TRACE", "CONNECT"],
    "OPTIONS": {
      "headers": {
        "test": "ok"
      }
    }
  },
  "log": {
    "access": {
      "enabled": true,
      "path": "log/access.log",
      "console": false
    },
    "error": {
      "debug": true,
      "enabled": true,
      "path": "log/error.log",
      "console": true
    },
    "warning": {
      "enabled": true
    }
  }
}