comparison src/http/modules/ngx_http_autoindex_module.c @ 503:b1648294f693 release-0.1.26

nginx-0.1.26-RELEASE import *) 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 <igor@sysoev.ru>
date Tue, 22 Mar 2005 16:02:46 +0000
parents d4ea69372b94
children 9b8c906f6e63
comparison
equal deleted inserted replaced
502:2017b79d7db5 503:b1648294f693
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