diff options
author | Ruslan Ermilov <ru@nginx.com> | 2017-08-04 08:01:55 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2017-08-04 08:01:55 +0300 |
commit | c09bba400d233331f1b405e18c6912a30502dee9 (patch) | |
tree | 84fddc2eb166e397cab2ba5362b3b9ed9fe97074 /src/stream/ngx_stream_upstream_zone_module.c | |
parent | d846f27638525f478ea07f5574b5569ce2ab1ac2 (diff) | |
download | nginx-c09bba400d233331f1b405e18c6912a30502dee9.tar.gz nginx-c09bba400d233331f1b405e18c6912a30502dee9.zip |
Referer: fixed $invalid_referer.
The variable was considered non-existent in the absence of any
valid_referers directives.
Given the following config snippet,
location / {
return 200 $invalid_referer;
}
location /referer {
valid_referers server_names;
}
"location /" should work identically and independently on other
"location /referer".
The fix is to always add the $invalid_referer variable as long
as the module is compiled in, as is done by other modules.
Diffstat (limited to 'src/stream/ngx_stream_upstream_zone_module.c')
0 files changed, 0 insertions, 0 deletions