summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_index_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_index_handler.h')
-rw-r--r--src/http/modules/ngx_http_index_handler.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_index_handler.h b/src/http/modules/ngx_http_index_handler.h
new file mode 100644
index 000000000..721bf2520
--- /dev/null
+++ b/src/http/modules/ngx_http_index_handler.h
@@ -0,0 +1,26 @@
+#ifndef _NGX_HTTP_INDEX_HANDLER_H_INCLUDED_
+#define _NGX_HTTP_INDEX_HANDLER_H_INCLUDED_
+
+
+#include <ngx_config.h>
+#include <ngx_array.h>
+#include <ngx_http.h>
+
+
+#define NGX_HTTP_INDEX "index.html"
+
+typedef struct {
+ ngx_array_t *indices;
+ size_t max_index_len;
+} ngx_http_index_conf_t;
+
+typedef struct {
+ char *name;
+ size_t len;
+} ngx_http_index_file_t;
+
+
+extern ngx_http_module_t ngx_http_index_module;
+
+
+#endif /* _NGX_HTTP_INDEX_HANDLER_H_INCLUDED_ */