Webserver directory index

When an HTTP client (generally a web browser) requests a URL that points to a directory structure instead of an actual web page within the directory, the web server will generally serve a default page, which is often referred to as a main or "index" page.

www.wikipedia.org, the index of Wikipedia, a multilingual online encyclopedia. Here the page offers many different languages.

A common filename for such a page is index.html, but most modern HTTP servers offer a configurable list of filenames that the server can use as an index. If a server is configured to support server-side scripting, the list will usually include entries allowing dynamic content to be used as the index page (e.g. index.php, index.shtml, index.jsp, default.asp) even though it may be more appropriate to still specify the HTML output (index.html.php or index.html.aspx), as this should not be taken for granted. An example is the popular open source web server Apache, where the list of filenames is controlled by the DirectoryIndex[1] directive in the main server configuration file or in the configuration file for that directory. It is possible to make do without file extensions at all, and be neutral to content delivery methods, and set the server to automatically pick the best file through content negotiation.

If the server is unable to find a file with any of the names listed in its configuration, it may either return an error (generally 404 Not Found) or generate its own index page listing the files in the directory. It may also return a 403 Index Listing Forbidden. Usually this option is also configurable.

History

A scheme where web server serves a default file on per-subdirectory basis has been supported as early as NCSA HTTPd 0.3beta (22 April 1993),[2] which defaults to serve index.html file in the directory.[2][3] This scheme has been then adopted by CERN HTTPd since at least 2.17beta (5 April 1994), which its default supports Welcome.html and welcome.html in addition to the NCSA-originated index.html.[4]

All later web servers support this default file scheme in one form or another; usually configurable, with index.html being one of the default file names.

Entrance

Since the index page of website's root directory is often the first page of a Web site that a user sees, it is sometimes used to offer a menu of language options for large Web sites that use geo targeting. It is also possible to avoid this step, for example by using content negotiation.

gollark: ++delete <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016>
gollark: ++delete <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016>
gollark: ++delete <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016>
gollark: ++delete <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016>
gollark: ++delete <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016> <:Thonk:445016973798014987> <:Thonkdown:433149076721238016>

References

  1. "mod_dir - Apache HTTP Server". httpd.apache.org. Retrieved 2014-05-30.
  2. "WWW-Talk Apr-Jun 1993: NCSA httpd version 0.3". 1997.webhistory.org.
  3. "NCSA HTTPd DirectoryIndex". January 31, 2009. Archived from the original on January 31, 2009.
  4. "Change History of W3C httpd". June 5, 1997. Archived from the original on June 5, 1997.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.