comparison src/http/modules/ngx_http_index_handler.c @ 288:f81d075ad172

nginx-0.0.2-2004-03-14-23:46:25 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 14 Mar 2004 20:46:25 +0000
parents 35a6a9df2d25
children 87e73f067470
comparison
equal deleted inserted replaced
287:35a6a9df2d25 288:f81d075ad172
96 */ 96 */
97 97
98 int ngx_http_index_handler(ngx_http_request_t *r) 98 int ngx_http_index_handler(ngx_http_request_t *r)
99 { 99 {
100 char *name; 100 char *name;
101 uint32_t crc;
102 size_t len; 101 size_t len;
103 ngx_fd_t fd; 102 ngx_fd_t fd;
104 ngx_int_t rc; 103 ngx_int_t rc;
105 ngx_str_t *index; 104 ngx_str_t *index;
106 ngx_err_t err; 105 ngx_err_t err;
107 ngx_log_t *log; 106 ngx_log_t *log;
108 ngx_http_index_ctx_t *ctx; 107 ngx_http_index_ctx_t *ctx;
109 ngx_http_core_loc_conf_t *clcf; 108 ngx_http_core_loc_conf_t *clcf;
110 ngx_http_index_loc_conf_t *ilcf; 109 ngx_http_index_loc_conf_t *ilcf;
110 #if (NGX_HTTP_CACHE)
111 uint32_t crc;
112 #endif
111 113
112 if (r->uri.data[r->uri.len - 1] != '/') { 114 if (r->uri.data[r->uri.len - 1] != '/') {
113 return NGX_DECLINED; 115 return NGX_DECLINED;
114 } 116 }
115 117