Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4542 - trunk/src/http

Anonymous User
March 15, 2012 04:06PM
Author: ru
Date: 2012-03-15 20:04:50 +0000 (Thu, 15 Mar 2012)
New Revision: 4542

Log:
The "error_log" directive specified in the "http", "server", and
"location" sections now understands the special "stderr" parameter.
It was already treated specially when specified in the main section.


Modified:
trunk/src/http/ngx_http_core_module.c

Modified: trunk/src/http/ngx_http_core_module.c
===================================================================
--- trunk/src/http/ngx_http_core_module.c 2012-03-15 19:41:35 UTC (rev 4541)
+++ trunk/src/http/ngx_http_core_module.c 2012-03-15 20:04:50 UTC (rev 4542)
@@ -4647,7 +4647,7 @@
{
ngx_http_core_loc_conf_t *clcf = conf;

- ngx_str_t *value;
+ ngx_str_t *value, name;

if (clcf->error_log) {
return "is duplicate";
@@ -4655,7 +4655,14 @@

value = cf->args->elts;

- clcf->error_log = ngx_log_create(cf->cycle, &value[1]);
+ if (ngx_strcmp(value[1].data, "stderr") == 0) {
+ ngx_str_null(&name);
+
+ } else {
+ name = value[1];
+ }
+
+ clcf->error_log = ngx_log_create(cf->cycle, &name);
if (clcf->error_log == NULL) {
return NGX_CONF_ERROR;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4542 - trunk/src/http

Anonymous User 1113 March 15, 2012 04:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready