{
  "id": "02",
  "content": [
    {
      "type": "heading",
      "text": "Directory Indexing & Default Documents"
    },
    {
      "type": "text",
      "html": "Control default index files (e.g., <code>index.php</code>, <code>index.html</code>) and directory listings."
    },
    {
      "type": "text",
      "html": "<pre><code>DirectoryIndex index.php index.html\nOptions -Indexes</code></pre>"
    },
    {
      "type": "text",
      "html": "<strong>DirectoryIndex</strong> sets which file is served by default. <strong>Options -Indexes</strong> disables auto\u2011listing of directory contents."
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "What does 'Options -Indexes' do?",
        "options": [
          {
            "id": "a",
            "text": "Enables directory listing"
          },
          {
            "id": "b",
            "text": "Disables directory listing"
          },
          {
            "id": "c",
            "text": "Forces HTTPS"
          }
        ],
        "correct": [
          "b"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "DirectoryIndex controls:",
        "options": [
          {
            "id": "a",
            "text": "Which files can be uploaded"
          },
          {
            "id": "b",
            "text": "The default file served in a directory"
          },
          {
            "id": "c",
            "text": "PHP error reporting"
          }
        ],
        "correct": [
          "b"
        ]
      }
    ]
  }
}