Custom Query (2297 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (46 - 48 of 2297)

Ticket Resolution Summary Owner Reporter
#625 fixed access_log directive: if= bug for buffered logs Sergey Kandaurov Anton Yuzhaninov
Description

In nginx 1.7.0 the if= parameter was added to the access_log directive for conditional logging. This condition fails to work for buffered logs.

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_load with url_file

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 https://stackoverflow.com/users/573152/bernard-rosset
Description

If you use variables in access_log path, nginx critically fails at creating the file: open() "/var/log/nginx/localhost/access.log" failed (2: No such file or directory) while logging request

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: CreateFile() "C:\nginx-1.6.2/logs/localhost/access.log" failed (3: FormatMessage() error:(15105)) while logging request

#925 wontfix access_log_limit / error_log_limit bugzilla77@…
Description

Please add size limit for files:

  • access_log
  • error_log

Tt grows to infinity on Windows.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.