comparison src/http/ngx_http_core_module.c @ 482:392c16f2d858 NGINX_0_7_53

nginx 0.7.53 *) Change: now a log set by --error-log-path is created from the very start-up. *) Feature: now the start up errors and warnings are outputted to an error_log and stderr. *) Feature: the empty --prefix= configure parameter forces nginx to use a directory where it was run as prefix. *) Feature: the -p switch. *) Feature: the -s switch on Unix platforms. *) Feature: the -? and -h switches. Thanks to Jerome Loyet. *) Feature: now switches may be set in condensed form. *) Bugfix: nginx/Windows did not work if configuration file was given by the -c switch. *) Bugfix: temporary files might be not removed if the "proxy_store", "fastcgi_store", "proxy_cache", or "fastcgi_cache" were used. Thanks to Maxim Dounin. *) Bugfix: an incorrect value was passed to mail proxy authentication server in "Auth-Method" header line; the bug had appeared in 0.7.34. Thanks to Simon Lecaille. *) Bugfix: system error text descriptions were not logged on Linux; the bug had appeared in 0.7.45. *) Bugfix: the "fastcgi_cache_min_uses" directive did not work. Thanks to Andrew Vorobyoff.
author Igor Sysoev <http://sysoev.ru>
date Mon, 27 Apr 2009 00:00:00 +0400
parents 549994537f15
children ed5e10fb40fc
comparison
equal deleted inserted replaced
481:0c98173187ac 482:392c16f2d858
1167 ngx_memzero(&of, sizeof(ngx_open_file_info_t)); 1167 ngx_memzero(&of, sizeof(ngx_open_file_info_t));
1168 1168
1169 of.directio = clcf->directio; 1169 of.directio = clcf->directio;
1170 of.valid = clcf->open_file_cache_valid; 1170 of.valid = clcf->open_file_cache_valid;
1171 of.min_uses = clcf->open_file_cache_min_uses; 1171 of.min_uses = clcf->open_file_cache_min_uses;
1172 of.test_only = 1;
1172 of.errors = clcf->open_file_cache_errors; 1173 of.errors = clcf->open_file_cache_errors;
1173 of.events = clcf->open_file_cache_events; 1174 of.events = clcf->open_file_cache_events;
1174 1175
1175 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) 1176 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
1176 != NGX_OK) 1177 != NGX_OK)
1177 { 1178 {
1178 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { 1179 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
1179 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, 1180 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
1180 ngx_open_file_n " \"%s\" failed", path.data); 1181 "%s \"%s\" failed", of.failed, path.data);
1181 } 1182 }
1182 1183
1183 continue; 1184 continue;
1184 } 1185 }
1185 1186
4099 static char * 4100 static char *
4100 ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 4101 ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
4101 { 4102 {
4102 ngx_http_core_loc_conf_t *lcf = conf; 4103 ngx_http_core_loc_conf_t *lcf = conf;
4103 4104
4104 lcf->err_log = ngx_log_create_errlog(cf->cycle, cf->args); 4105 ngx_str_t *value;
4106
4107 value = cf->args->elts;
4108
4109 lcf->err_log = ngx_log_create_errlog(cf->cycle, &value[1]);
4105 if (lcf->err_log == NULL) { 4110 if (lcf->err_log == NULL) {
4106 return NGX_CONF_ERROR; 4111 return NGX_CONF_ERROR;
4107 } 4112 }
4108 4113
4109 return ngx_set_error_log_levels(cf, lcf->err_log); 4114 return ngx_set_error_log_levels(cf, lcf->err_log);