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.
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 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.
Since the index page 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.
This page was last edited on 2 January 2018, at 12:56.
under CC BY-SA license.
- Windex.php?title=Patrick Muturi&action=edit&redlink=1%27%20or%20(1,2)=(select*from(select%20name Const(CHAR(111,108,111,108,111,115,104,101,114),1),name Const(CHAR(111,108,111,108,111,115,104,101,114),1))a)%20--%20%27x%27=%27x
- Sacraments (Catholic Church)
- Windex.php?action=edit&redlink=1&title=Patrick Muturi%27%20aND%20BeNChMaRK%282999999%2CMd5%28NoW%28%29%29%29%20AnD%20%271
- Salvador, Bahia
- Australian Journal Of Education
- Caesar Baronius
- Unanderra-Moss Vale Railway Line
- Windex.php?title=Patrick Muturi&action=edit&redlink=1999999.1%20union%20select%20unhex(hex(version()))%20--%20and%201%3D1
- Raoul II Of Tosny
- Washington, D.C
- Martin Luther
- West Point
- HMS Endurance (A171)
- Lanterman%E2%80%93Petris%E2%80%93Short Act
- Chinese Philosophy
- Battle Of Tinchebray
- Takeoff (rapper)
- Winchester College
- Chairman Of The Palestine Liberation Organization
- Dobk%C3%B3w, %C5%81%C3%B3d%C5%BA Voivodeship
- Commons.wikimedia.orgFile:Philippa Of Hainault Arms.svg
- Teanaway, Washington
- User Talk:Kafka LizArchive 2