Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-22Core: ngx_conf_set_keyval_slot() now accepts NGX_CONF_UNSET_PTR.Maxim Dounin
With this change, it is now possible to use ngx_conf_merge_ptr_value() to merge keyval arrays. This change actually follows much earlier changes in ngx_conf_merge_ptr_value() and ngx_conf_set_str_array_slot() in 1452:cd586e963db0 (0.6.10) and 1701:40d004d95d88 (0.6.22). To preserve compatibility with existing 3rd party modules, both NULL and NGX_CONF_UNSET_PTR are accepted for now.
2018-12-25Use %s for errors returned from configuration parsing handlers.Ruslan Ermilov
2018-08-09Skipping spaces in configuration files (ticket #1557).Maxim Dounin
Previously, a chunk of spaces larger than NGX_CONF_BUFFER (4096 bytes) resulted in the "too long parameter" error during parsing such a configuration. This was because the code only set start and start_line on non-whitespace characters, and hence adjacent whitespace characters were preserved when reading additional data from the configuration file. Fix is to always move start and start_line if the last character was a space.
2017-12-21Allowed configuration token to start with a variable.Roman Arutyunyan
Specifically, it is now allowed to start with a variable expression with braces: ${name}. The opening curly bracket in such a token was previously considered the start of a new block. Variables located anywhere else in a token worked fine: foo${name}.
2017-08-09Style.Sergey Kandaurov
2016-10-18Core: show file contents only once while dumping configuration.Vladimir Homutov
Files are considered the same if the path used by nginx during parsing matches.
2016-09-20Fixed log levels of configuration parsing errors.Valentin Bartenev
All the errors that prevent loading configuration must be printed on the "emerg" log level. Previously, nginx might silently fail to load configuration in some cases as the default log level is "error".
2016-03-30Style.Ruslan Ermilov
2016-02-04Dynamic modules: changed ngx_modules to cycle->modules.Maxim Dounin
2015-05-14Core: store and dump processed configuration.Vladimir Homutov
If the -T option is passed, additionally to configuration test, configuration files are output to stdout. In the debug mode, configuration files are kept in memory and can be accessed using a debugger.
2015-06-01Fixed excessive memory usage while parsing configuration.Valentin Bartenev
The b->pos points to the next symbol here. Reported by ilexshen.
2014-08-01Core: improved ngx_pstrdup() error handling.Tatsuhiko Kubo
2014-04-30Core: improved ngx_conf_parse() error handling.Maxim Dounin
Previous code failed to properly restore cf->conf_file in case of ngx_close_file() errors, potentially resulting in double free of cf->conf_file->buffer->start. Found by Coverity (CID 1087507).
2013-08-20Style improved after 12dd27b74117.Maxim Dounin
2013-08-20Backed out f1a91825730a and 7094bd12c1ff.Maxim Dounin
While ngx_get_full_name() might have a bit more descriptive arguments, the ngx_conf_full_name() is generally easier to use when parsing configuration and limits exposure of cycle->prefix / cycle->conf_prefix details.
2013-08-06API change: removed the ngx_conf_full_name() function.Valentin Bartenev
The ngx_get_full_name() should be used instead.
2013-08-06Replaced ngx_conf_full_name() with ngx_get_full_name().Valentin Bartenev
The ngx_get_full_name() function takes more readable arguments list.
2013-08-06Fixed memory leaks in the root and auth_basic_user_file directives.Valentin Bartenev
If a relative path is set by variables, then the ngx_conf_full_name() function was called while processing requests, which causes allocations from the cycle pool. A new function that takes pool as an argument was introduced.
2013-05-23Core: strengthen configuration syntax checker.Valentin Bartenev
It is now a syntax error if tokens passed to a custom configuration handler are terminated by "{". The following incorrect configuration is now properly rejected: map $v $v2 { a b { c d { e f { }
2013-03-25Use NGX_FILE_ERROR for handling file operations errors.Valentin Bartenev
On Win32 platforms 0 is used to indicate errors in file operations, so comparing against -1 is not portable. This was not much of an issue in patched code, since only ngx_fd_info() test is actually reachable on Win32 and in worst case it might result in bogus error log entry. Patch by Piotr Sikora.
2013-01-08The data pointer in ngx_open_file_t objects must be initialized.Valentin Bartenev
Uninitialized pointer may result in arbitrary segfaults if access_log is used without buffer and without variables in file path. Patch by Tatsuhiko Kubo (ticket #268).
2012-12-23Reopening log files code moved to a separate function.Valentin Bartenev
The code refactored in a way to call custom handler that can do appropriate cleanup work (if any), like flushing buffers, finishing compress streams, finalizing connections to log daemon, etc..
2012-12-14Fixed handling of ngx_write_fd() and ngx_read_fd() errors.Valentin Bartenev
The ngx_write_fd() and ngx_read_fd() functions return -1 in case of error, so the incorrect comparison with NGX_FILE_ERROR (which is 0 on windows platforms) might result in inaccurate error message in the error log. Also the ngx_errno global variable is being set only if the returned value is -1.
2012-08-28Fixed the "include" directive.Ruslan Ermilov
The "include" directive should be able to include multiple files if given a filename mask. Fixed this to work for "include" directives inside the "map" or "types" blocks. The "include" directive inside the "geo" block is still not fixed.
2012-07-29Improved diagnostics when a directive is specified in the wrong context.Ruslan Ermilov
2012-07-24Fixed compilation with -Wmissing-prototypes.Ruslan Ermilov
2012-04-18Don't silently ignore the last line of configuration file thatRuslan Ermilov
consists solely of one unterminated token (inspired by #150).
2012-04-12Fixed grammar in error messages.Ruslan Ermilov
2012-02-13Time parsing cleanup.Maxim Dounin
Nuke NGX_PARSE_LARGE_TIME, it's not used since 0.6.30. The only error ngx_parse_time() can currently return is NGX_ERROR, check it explicitly and make sure to cast it to appropriate type (either time_t or ngx_msec_t) to avoid signedness warnings on platforms with unsigned time_t (notably QNX).
2012-01-18Copyright updated.Maxim Konovalov
2011-04-12use memmove() in appropriate placesIgor Sysoev
2010-06-23style fixIgor Sysoev
2010-05-14ngx_str_set() and ngx_str_null()Igor Sysoev
2010-02-12const char *fmt in ngx_conf_log_error()Igor Sysoev
2009-11-05cf->conf_file->file.name.data may be uninitialized, if an allocation failed;Igor Sysoev
found by Clang Static Analyzer
2009-06-02add drive letter for Win32 root pathIgor Sysoev
2009-05-14style fixIgor Sysoev
2009-04-30*) refactor error_log processing: listen socket log might inherit built-inIgor Sysoev
error_log with zero level, and r2447, r2466, r2467 were not enough *) remove bogus "stderr" level *) some functions and fields renames
2009-04-29*) do not show line number for -g optionIgor Sysoev
*) reset configuration file after -g option has been parsed
2009-04-27ngx_log_errno()Igor Sysoev
2009-04-27use ngx_vslprintf(), ngx_slprintf()Igor Sysoev
2009-04-27-p and --prefix=Igor Sysoev
2009-04-23issue start up errors and warning on both stderr and error_logIgor Sysoev
2009-02-24small optimization: " == NGX_ERROR" > " != NGX_OK"Igor Sysoev
2008-11-25allocate cf->conf_file and cf->conf_file->buffer on stackIgor Sysoev
2008-11-25fix segfault on close errorIgor Sysoev
2008-11-25*) increase ngx_conf_log_error() bufferIgor Sysoev
*) always log an error code
2008-11-11compatibility with glibc 2.3, warn_unused_result attribute for write()Igor Sysoev
2008-09-01fix building by msvc introduced in r2223Igor Sysoev
2008-09-01test conf file size, this fixes OpenBSD's "nginx -c /tmp/" bugIgor Sysoev