Custom Query (2297 matches)
Results (46 - 48 of 2297)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#625 | fixed | access_log directive: if= bug for buffered logs | ||
Description |
In nginx 1.7.0 the if= parameter was added to the Example nginx config: # ?x=[01] or no x map $arg_x $x1 { default 1; 2 0; } # ?x=2 only map $arg_x $x2 { default 0; 2 1; } server { ... access_log /var/log/nginx/access_log; ... location = /a.gif { empty_gif; access_log /var/log/nginx/x1_log http_log buffer=16k if=$x1; access_log /var/log/nginx/x2_log http_log buffer=16k if=$x2; } location = /b.gif { empty_gif; access_log /var/log/nginx/x1_log http_log buffer=16k if=$x1; access_log /var/log/nginx/x2_log http_log buffer=16k if=$x2; }
Test load can be created with some benchmark, e. g. http://127.0.0.1/a.gif http://127.0.0.1/a.gif?x=0 http://127.0.0.1/a.gif?x=1 http://127.0.0.1/a.gif?x=2 http://127.0.0.1/b.gif http://127.0.0.1/b.gif?x=0 http://127.0.0.1/b.gif?x=1 http://127.0.0.1/b.gif?x=2 After test in the x1_log file I can see requests to /b.gif?x=2 and /b.gif, /b.gif?x=0 in the x2_log. This is wrong. After removing buffer=16k from access_log directive condition works just fine. |
|||
#655 | invalid | access_log fails to create log file when path contains variables | ||
Description |
If you use variables in Minimal configuration to reproduce: events { worker_connections 1024; } http { server { listen 80; server_name localhost; access_log /var/log/nginx/$host/access.log; } }
Also tested on Windows:
|
|||
#925 | wontfix | access_log_limit / error_log_limit | ||
Description |
Please add size limit for files:
Tt grows to infinity on Windows. |