Hi,
I'm fairly new to the nginx+redis stack so please bear with me if I'm making big mistakes here (all advice is welcome).
I'm trying to collect statistics using nginx as the public facing server and storing data in redis (data will later be processed by another system). I'm using redis2NginxModule (http://openresty.org/#Redis2NginxModule).
All I need to do is save the request parameters in redis and serve an empty_gif - problem is I can't seem to configure nginx to do both in the same request.
Right now I have this config file:
(...)
location = /_.gif {
redis2_query rpush pixel.tracking "$msec,$args";
redis2_pass 127.0.0.1:6379;
#empty_gif;
}
If I remove the comment in "empty_gif", I get the transparent gif but no record is saved in redis...
Can someone please tell me what I'm doing wrong?
Thank you!