February 2018
Beginner to intermediate
348 pages
9h 40m
English
Context: http, server, location. Variables are accepted.
Defines the default page that Nginx will serve if no filename is specified in the request (in other words, the index page). You may specify multiple filenames and the first file to be found will be served. If none of the specified files are found, Nginx will either attempt to generate an automatic index of the files, if the autoindex directive is enabled (check the HTTP Autoindex module) or returns a 403 Forbidden error page. Optionally, you may insert an absolute filename (such as /page.html, based on the document root directory) but only as the last argument of the directive.
Syntax: index file1 [file2...] [absolute_file];
Default value: index.html
index index.php index.html ...
Read now
Unlock full access