HttpIndexModule
(Difference between revisions)
(Add fallback information) |
(→index) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
= Directives = | = Directives = | ||
== index == | == index == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/http/ngx_http_index_module/index.txt" /> | |
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. | 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. | ||
| Line 15: | Line 15: | ||
= References = | = References = | ||
| − | [http:// | + | [http://nginx.org/en/docs/http/ngx_http_index_module.html Original Documentation] |
Latest revision as of 19:32, 2 May 2012
Contents |
[edit] Synopsis
Sets the default file to serve if a directory is requested by the client.
[edit] Directives
[edit] index
| Syntax: | index file ... |
| Default: | index.html |
| Context: |
http server location |
| Reference: | index |
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.










