Mercurial > hg > nginx-vendor-0-7
comparison src/http/modules/ngx_http_autoindex_module.c @ 52:0d75d65c642f NGINX_0_1_26
nginx 0.1.26
*) Change: the invalid client header lines are now ignored and logged
at the info level.
*) Change: the server name is also logged in error log.
*) Feature: the ngx_http_auth_basic_module module and the auth_basic
and auth_basic_user_file directives.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 22 Mar 2005 00:00:00 +0300 |
parents | 72eb30262aac |
children | b55cbf18157e |
comparison
equal
deleted
inserted
replaced
51:43f383e47efc | 52:0d75d65c642f |
---|---|
37 | 37 |
38 | 38 |
39 #define NGX_HTTP_AUTOINDEX_NAME_LEN 50 | 39 #define NGX_HTTP_AUTOINDEX_NAME_LEN 50 |
40 | 40 |
41 | 41 |
42 static int ngx_http_autoindex_cmp_entries(const void *one, const void *two); | 42 static int ngx_libc_cdecl ngx_http_autoindex_cmp_entries(const void *one, |
43 const void *two); | |
43 static ngx_int_t ngx_http_autoindex_error(ngx_http_request_t *r, | 44 static ngx_int_t ngx_http_autoindex_error(ngx_http_request_t *r, |
44 ngx_dir_t *dir, u_char *name); | 45 ngx_dir_t *dir, u_char *name); |
45 static ngx_int_t ngx_http_autoindex_init(ngx_cycle_t *cycle); | 46 static ngx_int_t ngx_http_autoindex_init(ngx_cycle_t *cycle); |
46 static void *ngx_http_autoindex_create_loc_conf(ngx_conf_t *cf); | 47 static void *ngx_http_autoindex_create_loc_conf(ngx_conf_t *cf); |
47 static char *ngx_http_autoindex_merge_loc_conf(ngx_conf_t *cf, | 48 static char *ngx_http_autoindex_merge_loc_conf(ngx_conf_t *cf, |
444 | 445 |
445 return ngx_http_output_filter(r, &out); | 446 return ngx_http_output_filter(r, &out); |
446 } | 447 } |
447 | 448 |
448 | 449 |
449 static int | 450 static int ngx_libc_cdecl |
450 ngx_http_autoindex_cmp_entries(const void *one, const void *two) | 451 ngx_http_autoindex_cmp_entries(const void *one, const void *two) |
451 { | 452 { |
452 ngx_http_autoindex_entry_t *first = (ngx_http_autoindex_entry_t *) one; | 453 ngx_http_autoindex_entry_t *first = (ngx_http_autoindex_entry_t *) one; |
453 ngx_http_autoindex_entry_t *second = (ngx_http_autoindex_entry_t *) two; | 454 ngx_http_autoindex_entry_t *second = (ngx_http_autoindex_entry_t *) two; |
454 | 455 |