Maxim Dounin
947fc03ca3
Variables: honor no_cacheable for not_found variables.
...
Variables with the "not_found" flag set follow the same rules as ones with
the "valid" flag set. Make sure ngx_http_get_flushed_variable() will flush
non-cacheable variables with the "not_found" flag set.
This fixes at least one known problem with $args not available in a subrequest
(with args) when there were no args in the main request and $args variable was
queried in the main request (reported by Laurence Rowe aka elro on irc).
Also this eliminates unneeded call to ngx_http_get_indexed_variable() in
cacheable case (as it will return cached value anyway).
2012-02-13 15:31:07 +00:00
Maxim Konovalov
f8d59e33f3
Copyright updated.
2012-01-18 15:07:43 +00:00
Valentin Bartenev
8d3ef1a3b3
Fixed: some of $sent_http_* variables may contain header entries that actually
...
haven't been sent to a client.
The ngx_http_variable_headers() and ngx_http_variable_unknown_header() functions
did not ignore response header entries with zero "hash" field.
Thanks to Yichun Zhang (agentzh).
2011-12-09 16:17:12 +00:00
Valentin Bartenev
247332a1e2
Added the $https variable.
2011-12-09 14:38:11 +00:00
Igor Sysoev
53d05b969b
change ngx_http_map_find(): use case sensitive regexes
2011-05-30 12:36:17 +00:00
Igor Sysoev
0519b43a77
allow regex as "map" parameter
2011-03-16 15:32:31 +00:00
Igor Sysoev
0923d08148
change ngx_http_variable_value_node_t to more generic ngx_str_node_t
2010-06-23 15:31:33 +00:00
Igor Sysoev
05b1a8f1e3
ngx_str_set() and ngx_str_null()
2010-05-14 09:56:37 +00:00
Igor Sysoev
fa7d06ee4f
change processing variables accessed by SSI and perl module:
...
*) the indexed variables are always flushed
*) never show warning for not found variables
2010-04-22 14:02:45 +00:00
Igor Sysoev
185a5d1726
make $arg_ variables non-cacheable
2010-04-22 13:35:30 +00:00
Igor Sysoev
1ee4b09091
make $request_method non-cacheable
2010-03-03 16:14:07 +00:00
Igor Sysoev
ded2a7c1af
fix $upstream_http_ variable prefix length
2010-02-15 19:38:59 +00:00
Igor Sysoev
e4bc4a2940
named captures worked for two names only
2010-01-11 11:21:46 +00:00
Igor Sysoev
6956db0696
fix building without PCRE, the bug had been introduced in r3326
2009-11-23 13:13:58 +00:00
Igor Sysoev
42f5fb19ac
evaluate maximum captures size on configuration phase
2009-11-16 19:11:38 +00:00
Igor Sysoev
d86a0bfed4
fix captures in "rewrite", the bug had been introduced in r3326
2009-11-16 19:10:45 +00:00
Igor Sysoev
c05f20ec2e
regex named captures
2009-11-16 12:19:02 +00:00
Igor Sysoev
956bdfc000
fix segfault if $limit_rate was logged
2009-11-03 15:05:38 +00:00
Igor Sysoev
67765e8918
use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr"
2009-11-02 14:32:46 +00:00
Igor Sysoev
5b6b1fda1c
allow to log invalid $request in access_log always,
...
before it was logged only if error_log was set to info or debug level
2009-09-21 15:55:56 +00:00
Igor Sysoev
430d42bfdc
fix segfault introduced in r2845
2009-05-22 11:32:17 +00:00
Igor Sysoev
2a9ce62631
use ngx_connection_local_sockaddr() instead of ngx_http_server_addr()
2009-05-18 12:58:19 +00:00
Igor Sysoev
ff07f319c9
$request_body variable
2009-05-14 11:40:51 +00:00
Igor Sysoev
3e7e9d72e5
fix segfault introduced in r2486 in $sent_http_location processing
2009-02-24 22:02:08 +00:00
Igor Sysoev
1f4220ee86
small optimization: " == NGX_ERROR" > " != NGX_OK"
2009-02-24 10:42:23 +00:00
Igor Sysoev
1966aedd6d
axe r->port_text
2009-02-24 07:29:55 +00:00
Igor Sysoev
a35eaccdec
a prelimiary IPv6 support, HTTP listen
2009-02-21 07:02:02 +00:00
Igor Sysoev
867d63bc1a
fix $sent_http_location for local redirects
2009-01-30 05:26:27 +00:00
Igor Sysoev
84d17bba65
ngx_http_arg()
2008-12-22 12:02:05 +00:00
Igor Sysoev
c6016b25cf
$cookie_... variable did not for SSI and perl
2008-12-01 13:59:35 +00:00
Igor Sysoev
9857082f09
variable value rbtree support
2008-11-22 20:42:01 +00:00
Igor Sysoev
c8b40a2401
$cookie_... variable
2008-11-12 11:12:02 +00:00
Igor Sysoev
6736614275
$realpath_root
2008-09-27 11:53:41 +00:00
Igor Sysoev
ea1c7c7f16
$pid
2008-09-15 16:41:08 +00:00
Igor Sysoev
5d4e80b8fb
remove unused #include's
2008-09-05 15:25:47 +00:00
Igor Sysoev
6a75019ad6
*) remove zero termination in ngx_inet_ntop() and ngx_sock_ntop()
...
*) use ngx_snprintf() in ngx_inet_ntop() and ngx_sock_ntop()
as they are called just once per connection
*) NGX_INET_ADDRSTRLEN
2008-08-21 18:47:23 +00:00
Igor Sysoev
42511c05c7
$arg_... variable
2008-08-04 11:10:52 +00:00
Igor Sysoev
777b019c73
ngx_strlow()
2008-08-04 10:07:00 +00:00
Igor Sysoev
7f6b2ffc60
*) back out r2040
...
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
2008-06-17 15:00:30 +00:00
Igor Sysoev
3be5257a4f
$hostname variable
2008-05-16 14:39:06 +00:00
Igor Sysoev
5fd0931a61
*) host in request line has priority
...
*) allow several Host headers
*) validate host
2008-05-15 14:44:47 +00:00
Igor Sysoev
feee7265b5
axe useless r->server_name
2007-12-30 08:15:27 +00:00
Igor Sysoev
c7a9b7a990
use ngx_http_server_addr()
2007-12-29 16:00:34 +00:00
Igor Sysoev
2d3f3f6eb6
fix English grammar
2007-10-14 18:56:15 +00:00
Igor Sysoev
a1df416d65
--sysconfdir=DIR
2007-07-29 18:05:45 +00:00
Igor Sysoev
0051242013
$is_args
2007-07-29 17:56:56 +00:00
Igor Sysoev
33fa6e30bc
allow to set $args
2007-07-29 17:55:37 +00:00
Igor Sysoev
f36ed5991a
$nginx_version
2007-07-22 13:12:16 +00:00
Igor Sysoev
f42ed05e9c
Sun Studio on sparc uses different bit order
2007-07-17 09:23:23 +00:00
Igor Sysoev
75c3272a1c
fix segfault introduced in r1190
2007-05-02 09:02:23 +00:00