FAQ

Page Discussion History

Difference between revisions of "HttpIndexModule"

(Add fallback information)
 
m (References: update link to the original documentation)
Line 15: Line 15:
 
= References =
 
= References =
  
[http://sysoev.ru/nginx/docs/http/ngx_http_index_module.html Original Documentation]
+
[http://nginx.org/en/docs/http/ngx_http_index_module.html Original Documentation]

Revision as of 15:27, 21 April 2012

Contents

Synopsis

Sets the default file to serve if a directory is requested by the client.

Directives

index

syntax: index filename [filename... [fallback]]

default: index index.html

context: http, server, location

variables: no


Sets the default file to serve if a directory is requested by the client. Multiple files can be specified. If the first file isn't found, the second will be used and so on. If the last entry begins with a /, and none of the earlier files are found, nginx will perform an internal redirect to this uri.

  index index.html index.php /index.php;

References

Original Documentation