comparison src/http/modules/ngx_http_static_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
59 59
60 60
61 static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r) 61 static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r)
62 { 62 {
63 char *last; 63 char *last;
64 uint32_t file_crc, redirect_crc;
65 ngx_fd_t fd; 64 ngx_fd_t fd;
66 ngx_int_t rc; 65 ngx_int_t rc;
67 ngx_uint_t level; 66 ngx_uint_t level;
68 ngx_str_t name, location; 67 ngx_str_t name, location;
69 ngx_err_t err; 68 ngx_err_t err;
70 ngx_log_t *log; 69 ngx_log_t *log;
71 ngx_hunk_t *h; 70 ngx_hunk_t *h;
72 ngx_chain_t out; 71 ngx_chain_t out;
73 ngx_file_info_t fi; 72 ngx_file_info_t fi;
74 ngx_http_cache_t *file, *redirect;
75 ngx_http_cleanup_t *file_cleanup, *redirect_cleanup; 73 ngx_http_cleanup_t *file_cleanup, *redirect_cleanup;
76 ngx_http_log_ctx_t *ctx; 74 ngx_http_log_ctx_t *ctx;
77 ngx_http_core_loc_conf_t *clcf; 75 ngx_http_core_loc_conf_t *clcf;
78 ngx_http_static_loc_conf_t *slcf; 76 ngx_http_static_loc_conf_t *slcf;
77 #if (NGX_HTTP_CACHE)
78 uint32_t file_crc, redirect_crc;
79 ngx_http_cache_t *file, *redirect;
80 #endif
79 81
80 if (r->uri.data[r->uri.len - 1] == '/') { 82 if (r->uri.data[r->uri.len - 1] == '/') {
81 return NGX_DECLINED; 83 return NGX_DECLINED;
82 } 84 }
83 85