aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_map_module.c
Commit message (Collapse)AuthorAge
* Map: the "volatile" parameter.Ruslan Ermilov2016-12-08
| | | | | | | | | | | | | | | | | | By default, "map" creates cacheable variables [1]. With this parameter it creates a non-cacheable variable. An original idea was to deduce the cacheability of the "map" variable by checking the cacheability of variables specified in source and resulting values, but it turned to be too hard. For example, a cacheable variable can be overridden with the "set" directive or with the SSI "set" command. Also, keeping "map" variables cacheable by default is good for performance reasons. This required adding a new parameter. [1] Before db699978a33f (1.11.0), the cacheability of the "map" variable could vary depending on the cacheability of variables specified in resulting values (ticket #1090). This is believed to be a bug rather than a feature.
* Map: simplified "map" block parser.Ruslan Ermilov2016-12-08
| | | | No functional changes.
* Map: support of complex values in resulting strings.Dmitry Volyntsev2016-05-12
|
* Fixed logging.Sergey Kandaurov2016-03-31
|
* Win32: MSVC 2015 compatibility.Maxim Dounin2015-08-17
| | | | | | | Resolved warnings about declarations that hide previous local declarations. Warnings about WSASocketA() being deprecated resolved by explicit use of WSASocketW() instead of WSASocket(). When compiling without IPv6 support, WinSock deprecated warnings are disabled to allow use of gethostbyname().
* Handling of ngx_int_t != intptr_t case.Maxim Dounin2013-09-04
| | | | | | | | | Casts between pointers and integers produce warnings on size mismatch. To silence them, cast to (u)intptr_t should be used. Prevoiusly, casts to ngx_(u)int_t were used in some cases, and several ngx_int_t expressions had no casts. As of now it's mostly style as ngx_int_t is defined as intptr_t.
* Use NGX_DEFAULT_POOL_SIZE macro where appropriate.Ruslan Ermilov2013-03-21
|
* Added checks that disallow adding a variable with an empty name.Ruslan Ermilov2012-12-17
| | | | Added variable name syntax checks to "geo" and "map" directives.
* Fixed the "include" directive.Ruslan Ermilov2012-08-28
| | | | | | | 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.
* Map: fixed optimization of variables as values.Maxim Dounin2012-08-16
| | | | | | | Previous code incorrectly used ctx->var_values as an array of pointers to ngx_http_variable_value_t, but the array contains structures, not pointers. Additionally, ctx->var_values inspection failed to properly set var on match.
* map: strip final dot before looking up in a map of hostnames.Ruslan Ermilov2012-06-29
| | | | (closes #182)
* Copyright updated.Maxim Konovalov2012-01-18
|
* revert r3875 since now map uses case sensetive regexes by defaultIgor Sysoev2011-05-30
|
* change ngx_http_map_find(): use case sensitive regexesIgor Sysoev2011-05-30
|
* map tests values in low case only, so caseless regex has no senseIgor Sysoev2011-03-21
|
* allow regex as "map" parameterIgor Sysoev2011-03-16
|
* allow variable as "map" valueIgor Sysoev2010-11-26
|
* use "\" to escape "default", "include", and "hostnames" values instead of "!"Igor Sysoev2010-11-25
|
* allow empty value as "map" parameterIgor Sysoev2010-11-25
|
* allow expressions in the first "map" parameterIgor Sysoev2010-11-25
|
* style fixIgor Sysoev2010-06-23
|
* If .domain.com, .sub.domain.com, and .domain-some.com were defined,Igor Sysoev2009-09-12
| | | | | | | | | | then .sub.domain.com was matched by .domain.com: wildcard names hash was built incorrectly due to sorting order issue of "." vs "-". They were sorted as com.domain com.domain-some com.domain.sub while they should be sorted as com.domain com.domain.sub com.domain-some for correct hash building
* return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev2009-06-02
|
* small optimization: " == NGX_ERROR" > " != NGX_OK"Igor Sysoev2009-02-24
|
* ngx_hash_strlow()Igor Sysoev2008-08-04
|
* *) back out r2040Igor Sysoev2008-06-17
| | | | | | *) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
* fix English grammarIgor Sysoev2007-10-14
|
* use %v for ngx_variable_value_t in ngx_sprintf(),Igor Sysoev2007-08-20
| | | | this fixes nginx on FreeBSD/sparc64
* --sysconfdir=DIRIgor Sysoev2007-07-29
|
* the "www.example.*" wildcard hash supportIgor Sysoev2007-06-11
|
* fix segfault if $server_addr failedIgor Sysoev2006-10-20
|
* nginx-0.3.40-RELEASE importrelease-0.3.40Igor Sysoev2006-04-19
| | | | | | | | *) Feature: the ngx_http_dav_module supports the MKCOL method. *) Feature: the "create_full_put_path" directive. *) Feature: the "$limit_rate" variable.
* nginx-0.3.18-RELEASE importrelease-0.3.18Igor Sysoev2005-12-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | *) Feature: the "server_names" directive supports the ".domain.tld" names. *) Feature: the "server_names" directive uses the hash for the "*.domain.tld" names and more effective hash for usual names. *) Change: the "server_names_hash_max_size" and "server_names_hash_bucket_size" directives. *) Change: the "server_names_hash" and "server_names_hash_threshold" directives were canceled. *) Feature: the "valid_referers" directive uses the hash site names. *) Change: now the "valid_referers" directive checks the site names only without the URI part. *) Bugfix: some ".domain.tld" names incorrectly processed by the ngx_http_map_module. *) Bugfix: segmentation fault was occurred if configuration file did not exist; the bug had appeared in 0.3.12. *) Bugfix: on 64-bit platforms segmentation fault may occurred on start; the bug had appeared in 0.3.16.
* nginx-0.3.17-RELEASE importrelease-0.3.17Igor Sysoev2005-12-18
| | | | | | | | | | | | | | | | *) Change: now on Linux configure checks the presence of epoll and sendfile64() in kernel. *) Feature: the "map" directive supports domain names in the ".domain.tld" form. *) Bugfix: the timeouts were not used in SSL handshake; the bug had appeared in 0.2.4. *) Bugfix: in the HTTPS protocol in the "proxy_pass" directive. *) Bugfix: when the HTTPS protocol was used in the "proxy_pass" directive the port 80 was used by default.
* nginx-0.3.16-RELEASE importrelease-0.3.16Igor Sysoev2005-12-16
*) Feature: the ngx_http_map_module. *) Feature: the "types_hash_max_size" and "types_hash_bucket_size" directives. *) Feature: the "ssi_value_length" directive. *) Feature: the "worker_rlimit_core" directive. *) Workaround: the connection number in logs was always 1 if nginx was built by the icc 8.1 or 9.0 compilers with optimization for Pentium 4. *) Bugfix: the "config timefmt" SSI command set incorrect time format. *) Bugfix: nginx did not close connection to IMAP/POP3 backend for the SSL connections; the bug had appeared in 0.3.13. Thanks to Rob Mueller. *) Bugfix: segmentation fault may occurred in at SSL shutdown; the bug had appeared in 0.3.13.