Mercurial > hg > nginx-vendor-0-7
comparison src/http/modules/ngx_http_auth_basic_module.c @ 180:4cd3e70c4d60 NGINX_0_3_37
nginx 0.3.37
*) Feature: the "limit_except" directive.
*) Feature: the "if" directive supports the "!~", "!~*", "-f", and
"!-f" operators.
*) Feature: the ngx_http_perl_module supports the $r->request_body
method.
*) Bugfix: in the ngx_http_addition_filter_module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 07 Apr 2006 00:00:00 +0400 |
parents | 91372f004adf |
children | 56688ed172c8 |
comparison
equal
deleted
inserted
replaced
179:654cbdc0401d | 180:4cd3e70c4d60 |
---|---|
39 static ngx_conf_post_handler_pt ngx_http_auth_basic_p = ngx_http_auth_basic; | 39 static ngx_conf_post_handler_pt ngx_http_auth_basic_p = ngx_http_auth_basic; |
40 | 40 |
41 static ngx_command_t ngx_http_auth_basic_commands[] = { | 41 static ngx_command_t ngx_http_auth_basic_commands[] = { |
42 | 42 |
43 { ngx_string("auth_basic"), | 43 { ngx_string("auth_basic"), |
44 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 44 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LMT_CONF |
45 |NGX_CONF_TAKE1, | |
45 ngx_conf_set_str_slot, | 46 ngx_conf_set_str_slot, |
46 NGX_HTTP_LOC_CONF_OFFSET, | 47 NGX_HTTP_LOC_CONF_OFFSET, |
47 offsetof(ngx_http_auth_basic_loc_conf_t, realm), | 48 offsetof(ngx_http_auth_basic_loc_conf_t, realm), |
48 &ngx_http_auth_basic_p }, | 49 &ngx_http_auth_basic_p }, |
49 | 50 |
50 { ngx_string("auth_basic_user_file"), | 51 { ngx_string("auth_basic_user_file"), |
51 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 52 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LMT_CONF |
53 |NGX_CONF_TAKE1, | |
52 ngx_conf_set_str_slot, | 54 ngx_conf_set_str_slot, |
53 NGX_HTTP_LOC_CONF_OFFSET, | 55 NGX_HTTP_LOC_CONF_OFFSET, |
54 offsetof(ngx_http_auth_basic_loc_conf_t, user_file), | 56 offsetof(ngx_http_auth_basic_loc_conf_t, user_file), |
55 NULL }, | 57 NULL }, |
56 | 58 |
57 ngx_null_command | 59 ngx_null_command |
58 }; | 60 }; |
59 | |
60 | 61 |
61 | 62 |
62 ngx_http_module_t ngx_http_auth_basic_module_ctx = { | 63 ngx_http_module_t ngx_http_auth_basic_module_ctx = { |
63 NULL, /* preconfiguration */ | 64 NULL, /* preconfiguration */ |
64 NULL, /* postconfiguration */ | 65 NULL, /* postconfiguration */ |