comparison src/core/ngx_conf_file.c @ 212:56688ed172c8 NGINX_0_3_53

nginx 0.3.53 *) Change: the "add_header" directive adds the string to 204, 301, and 302 responses. *) Feature: the "server" directive in the "upstream" context supports the "weight" parameter. *) Feature: the "server_name" directive supports the "*" wildcard. *) Feature: nginx supports the request body size more than 2G. *) Bugfix: if a client was successfully authorized using "satisfy_any on", then anyway the message "access forbidden by rule" was written in the log. *) Bugfix: the "PUT" method may erroneously not create a file and return the 409 code. *) Bugfix: if the IMAP/POP3 backend returned an error, then nginx continued proxying anyway.
author Igor Sysoev <http://sysoev.ru>
date Fri, 07 Jul 2006 00:00:00 +0400
parents e6da4931e0e0
children a528ae0fe909
comparison
equal deleted inserted replaced
211:f04a54878110 212:56688ed172c8
1034 return NGX_CONF_OK; 1034 return NGX_CONF_OK;
1035 } 1035 }
1036 1036
1037 1037
1038 char * 1038 char *
1039 ngx_conf_set_off_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
1040 {
1041 char *p = conf;
1042
1043 off_t *op;
1044 ngx_str_t *value;
1045 ngx_conf_post_t *post;
1046
1047
1048 op = (off_t *) (p + cmd->offset);
1049 if (*op != NGX_CONF_UNSET) {
1050 return "is duplicate";
1051 }
1052
1053 value = cf->args->elts;
1054
1055 *op = ngx_parse_offset(&value[1]);
1056 if (*op == (off_t) NGX_ERROR) {
1057 return "invalid value";
1058 }
1059
1060 if (cmd->post) {
1061 post = cmd->post;
1062 return post->post_handler(cf, post, op);
1063 }
1064
1065 return NGX_CONF_OK;
1066 }
1067
1068
1069 char *
1039 ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 1070 ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
1040 { 1071 {
1041 char *p = conf; 1072 char *p = conf;
1042 1073
1043 ngx_msec_t *msp; 1074 ngx_msec_t *msp;