#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
ngx_http_index_t;
ngx_http_index_loc_conf_t;
#define NGX_HTTP_DEFAULT_INDEX …
static ngx_int_t ngx_http_index_test_dir(ngx_http_request_t *r,
ngx_http_core_loc_conf_t *clcf, u_char *path, u_char *last);
static ngx_int_t ngx_http_index_error(ngx_http_request_t *r,
ngx_http_core_loc_conf_t *clcf, u_char *file, ngx_err_t err);
static ngx_int_t ngx_http_index_init(ngx_conf_t *cf);
static void *ngx_http_index_create_loc_conf(ngx_conf_t *cf);
static char *ngx_http_index_merge_loc_conf(ngx_conf_t *cf,
void *parent, void *child);
static char *ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd,
void *conf);
static ngx_command_t ngx_http_index_commands[] = …;
static ngx_http_module_t ngx_http_index_module_ctx = …;
ngx_module_t ngx_http_index_module = …;
static ngx_int_t
ngx_http_index_handler(ngx_http_request_t *r)
{ … }
static ngx_int_t
ngx_http_index_test_dir(ngx_http_request_t *r, ngx_http_core_loc_conf_t *clcf,
u_char *path, u_char *last)
{ … }
static ngx_int_t
ngx_http_index_error(ngx_http_request_t *r, ngx_http_core_loc_conf_t *clcf,
u_char *file, ngx_err_t err)
{ … }
static void *
ngx_http_index_create_loc_conf(ngx_conf_t *cf)
{ … }
static char *
ngx_http_index_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
{ … }
static ngx_int_t
ngx_http_index_init(ngx_conf_t *cf)
{ … }
static char *
ngx_http_index_set_index(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{ … }