HTTP Redis, SSI and error log

Hello,

I am trying to use the http redis module for nginx basically like :

set $redis_key "$key";
redis_pass redisbackend;
default_type   text/html;
error_page 404 502 504 = @fallback;

But I have a curious message in error log !?

2011/01/21 17:45:38 [alert] 25902#0: *125149 unknown variable index: -1,
client: XXX.XXX.XXX.XXX, server: _, request: "GET /myUri/ HTTP/1.1",
subrequest: "/MySubrequest/", host: "Myhost"

How to remove it ?

Thanks in advance

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168303,168303#msg-168303

Hi,

On Fri, Jan 21, 2011 at 11:54:00AM -0500, vchav wrote:

I am trying to use the http redis module for nginx basically like :

[code]
set $redis_key “$key”;

What is the $key?

Examples for ngx_http_redis module available in README.

redis_pass redisbackend;

Provide more information about redisbackend description.

How to remove it ?


Sergey A. Osokin
[email protected]
[email protected]

What is the $key?
set $redis_key “$http_host$document_uri$query_string”;

Provide more information about redisbackend
description.

upstream redisbackend {
server 127.0.0.1:6379;
keepalive 256 single;
}

Additional information : I’ve removed the line
static ngx_str_t ngx_http_redis_db = ngx_string(“redis_db”);

Because of error in compilation.
./configure … --add-module=…/ngx_http_redis-0.3.2
–add-module=…/ngx_http_upstream_keepalive-c6396fef9295
make && make install

Thanks you

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168303,168377#msg-168377

On Fri, Jan 21, 2011 at 03:13:18PM -0500, vchav wrote:

What is the $key?
set $redis_key “$http_host$document_uri$query_string”;

Does it possible get “$http_host$document_uri$query_string” key-value
via redis_cli?
Could you please provide logs with this key?

Provide more information about redisbackend
description.

upstream redisbackend {
server 127.0.0.1:6379;
keepalive 256 single;
}

keepalive options available only if you are compile nginx with
ngx_http_upstream_keepalive third-party module.

Additional information : I’ve removed the line
static ngx_str_t ngx_http_redis_db = ngx_string(“redis_db”);

Because of error in compilation.
./configure … --add-module=…/ngx_http_redis-0.3.2
–add-module=…/ngx_http_upstream_keepalive-c6396fef9295
make && make install

What is the platform do you using? You should remove -Wall from
your CFLAGS, as I told you in private letter.
Also, I fix compilation problem in future releases.


Sergey A. Osokin
[email protected]
[email protected]

Does it possible get
“$http_host$document_uri$query_string” key-value
via redis_cli?
Could you please provide logs with this key?

Yes, it can send the key. Even with your module. It works fine but there
are alert in errors logs.

keepalive options available only if you are
compile nginx with
ngx_http_upstream_keepalive third-party module.

Yes, no problem with that.

What is the platform do you using? You should
remove -Wall from
your CFLAGS, as I told you in private letter.
Also, I fix compilation problem in future
releases.

Debian lenny.
Thanks

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168303,169013#msg-169013

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs